/* ===== RESET DASAR ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== GLOBAL ===== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, sans-serif;
  background: #1f1f1f;
  color: #eaeaea;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 380px;
  background: #2b2b2b;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* ===== TEXT ===== */
.login-title {
  text-align: center;
  margin-bottom: 6px;
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: #bdbdbd;
  margin-bottom: 24px;
}

/* ===== FORM ===== */
.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #cfcfcf;
}

.login-form input,
.login-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: #1e1e1e;
  color: #fff;
  outline: none;
}

.login-form input::placeholder {
  color: #888;
}

.login-form input:focus,
.login-form select:focus {
  outline: 2px solid #4ea1ff;
}

/* ===== BUTTON ===== */
.btn-login {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: #4ea1ff;
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-login:hover {
  background: #6bb2ff;
}

/* ===== ERROR (NANTI) ===== */
.login-error {
  margin-top: 16px;
  text-align: center;
  color: #ff6b6b;
  font-size: 0.85rem;
}

/* ===== DASHBOARD ===== */
.page {
  padding: 24px;
}

.header {
  margin-bottom: 24px;
}

.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #2b2b2b;
  padding: 20px;
  border-radius: 10px;
}

.card h3 {
  margin-bottom: 10px;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #4ea1ff;
  text-decoration: none;
}

/* ===== FORM ===== */
.form {
  margin-top: 10px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
}

.card ul {
  margin-top: 10px;
  padding-left: 20px;
}

.card li {
  margin-bottom: 8px;
}

/* ===== TABLE ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #444;
  text-align: left;
}

.table input {
  width: 80px;
  padding: 6px;
}

/* ANALYTICS */

.progress-wrapper {
  margin-top: 10px;
}

.progress-bar {
  width: 100%;
  height: 18px;
  background: #555;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #4caf50;
}

.bar-chart {
  margin-top: 10px;
}

.bar-group {
  margin-bottom: 12px;
}

.bar-group span {
  display: block;
  margin-bottom: 4px;
}

.bar {
  height: 26px;
  border-radius: 8px;
  padding-left: 10px;
  line-height: 26px;
  color: #fff;
  font-weight: bold;
}

.bar.success {
  background: #4caf50;
}

.bar.warning {
  background: #ff9800;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th,
.table td {
  border: 1px solid #555;
  padding: 10px;
  text-align: center;
}

.table th {
  background: #444;
}

.back-btn {
  display: inline-block;
  margin-top: 30px;
  text-decoration: none;
  color: #9ddcff;
}

/* SKILL TREE */

.skill-tree {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skill-card {
  background: #3a3a3a;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.skill-card h3 {
  margin-top: 0;
}

.skill-card.done {
  border-left: 6px solid #4caf50;
}

.skill-card.progress {
  border-left: 6px solid #ff9800;
}

.skill-card.locked {
  border-left: 6px solid #777;
  opacity: 0.6;
}

/* PROGRESS MAHASISWA */

.status-done {
  color: #4caf50;
  font-weight: bold;
}

.status-progress {
  color: #ff9800;
  font-weight: bold;
}

.status-locked {
  color: #aaa;
  font-weight: bold;
}
