/* ============================================
   SNBT TRYOUT - Main Stylesheet
   Authentic SNBT-like UI
   ============================================ */

:root {
  --color-primary: #003d82;
  --color-primary-light: #0056b3;
  --color-primary-dark: #002a5c;
  --color-accent: #ff6b00;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;

  --color-bg: #f3f4f6;
  --color-bg-card: #ffffff;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-border-hover: #d1d5db;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }

/* ===== LOGIN PAGE ===== */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003d82 0%, #0056b3 50%, #0066cc 100%);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  gap: 1rem;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.login-container::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 107, 0, 0.08);
  border-radius: 50%;
}

.login-box {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(0, 61, 130, 0.3);
}

.login-header h1 {
  color: var(--color-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
  font-family: inherit;
  background: white;
  color: var(--color-text);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}

.form-control.error {
  border-color: var(--color-danger);
}

.error-msg {
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-success {
  background: var(--color-success);
  color: white;
}

.btn-block { width: 100%; }

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.login-hint {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  color: #92400e;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.login-hint strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== FORM ALERT (Global) ===== */
.form-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.form-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.form-alert.success {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.form-alert.info {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

/* ===== TAB NAVIGATION (Login / Register / List) ===== */
.tab-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  background: var(--color-bg);
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 0.6rem 0.75rem;
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.tab-btn:hover {
  background: rgba(0, 61, 130, 0.05);
  color: var(--color-primary);
}

.tab-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.tab-btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.tab-panel {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== REGISTRASI CARD ===== */
.registrasi-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.registrasi-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.registrasi-header h2 {
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.registrasi-header p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.required {
  color: var(--color-danger);
  font-weight: 700;
}

.optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.85em;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form-actions .btn-primary {
  flex: 2;
  min-width: 180px;
}

.form-actions .btn-secondary {
  flex: 1;
  min-width: 100px;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.form-hint.success {
  color: var(--color-success);
  font-weight: 500;
}

.form-hint.error {
  color: var(--color-danger);
  font-weight: 500;
}

/* ===== PESERTA TOOLBAR & LIST ===== */
.peserta-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.peserta-toolbar .form-control {
  flex: 1;
  min-width: 200px;
}

.peserta-toolbar .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.peserta-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.peserta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.peserta-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.peserta-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.25rem;
}

.btn-peserta-delete {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #dc2626;
  border: 1px solid #b91c1c;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  visibility: visible !important;
  opacity: 1 !important;
}

.btn-peserta-delete:hover:not(:disabled) {
  color: #fff;
  background: #b91c1c;
  border-color: #991b1b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.btn-peserta-delete:active:not(:disabled) {
  transform: translateY(0);
}

.btn-peserta-delete:disabled {
  opacity: 0.6 !important;
  cursor: wait;
}

.btn-peserta-delete-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.peserta-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 61, 130, 0.25);
}

.peserta-info {
  flex: 1;
  min-width: 0;
}

.peserta-nama {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  word-wrap: break-word;
}

.peserta-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.peserta-sekolah {
  font-size: 0.8rem;
  color: var(--color-text);
  margin-bottom: 0.1rem;
}

.peserta-email {
  font-size: 0.8rem;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
  word-wrap: break-word;
}

.peserta-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.peserta-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
  font-size: 0.9rem;
}

.btn.is-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
  .tab-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
  }
  .registrasi-card {
    padding: 1.5rem 1.25rem;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
    flex: 1;
  }
  .peserta-item {
    padding: 0.75rem;
  }
  .btn-peserta-delete-text {
    display: none;
  }
  .btn-peserta-delete {
    padding: 0.4rem 0.5rem;
  }
  .btn-peserta-delete-icon {
    font-size: 1rem;
  }
}

/* ===== INLINE ERROR MESSAGE ===== */
.error-msg {
  display: block;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1rem;
  line-height: 1.3;
}

.error-msg:empty {
  display: none;
}

.form-control.error {
  border-color: #ef4444 !important;
  background: #fef2f2;
}

.form-control.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ===== PASSWORD INPUT WRAPPER ===== */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper .form-control {
  padding-right: 3rem;
  width: 100%;
}

.password-wrapper .form-control:focus {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.2s;
  z-index: 1;
}

.toggle-password:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.toggle-password:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.eye-icon {
  pointer-events: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
/* ===== IKON SVG (js/icons.js) =====
   Ikon garis elegan yang menggantikan emoji.
   Semua ikon: stroke=currentColor, 24x24 viewBox. */
.ic {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 0;
}

/* Ikon di dalam tombol biasa */
.btn .btn-ic,
.btn-ic {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.4rem;
  line-height: 0;
}
.btn .btn-ic:last-child,
.btn-ic:last-child { margin-right: 0; }

/* Tombol link / anchor */
a .btn-ic,
a .ic { margin-right: 0.35rem; }

/* Menu item (dashboard) */
.exam-menu-item .menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  line-height: 0;
}

/* Tombol besar "MULAI UJIAN" */
.bmu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Tombol view / start subtest */
.btn-view .ic,
.btn-start-subtest .ic { margin-right: 0.35rem; }

/* ===== FORM HINT (info kecil di bawah input) ===== */
.form-hint {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.form-hint code {
  background: var(--color-bg);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.85em;
}

/* ===== REQUIRED INDICATOR ===== */
.required {
  color: #ef4444;
  font-weight: 700;
  margin-left: 0.15rem;
}

.label-hint {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.82rem;
  margin-left: 0.25rem;
}

/* ===== DEMO CODES BOX ===== */
.demo-codes {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.7;
}

.demo-codes strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #92400e;
}

.demo-codes code {
  display: inline-block;
  background: white;
  padding: 0.15rem 0.5rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #92400e;
  font-size: 0.82rem;
  border: 1px solid #fde68a;
}

/* (CSS di atas untuk .demo-codes tidak lagi dipakai di index.html,
   tapi disimpan untuk backward compatibility jika ingin diaktifkan kembali) */

/* ===== TOMBOL MULAI UJIAN (BESAR & EYE-CATCHING) ===== */
.btn-start-exam {
  width: 100%;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 61, 130, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-start-exam::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-start-exam:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 61, 130, 0.4);
}

.btn-start-exam:hover::before {
  left: 100%;
}

.btn-start-exam:active {
  transform: translateY(0);
}

.btn-start-exam:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-start-exam .btn-icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.btn-start-exam .btn-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-start-exam .btn-subtext {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 0;
}

/* ===== QUICK START BUTTONS (di Dashboard) ===== */
.btn-start-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.btn-start-quick::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}

.btn-start-quick:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  background: white;
}

.btn-start-quick:hover::before {
  left: 100%;
}

.btn-start-quick:active {
  transform: translateY(-1px) scale(1);
}

.btn-start-quick .qs-icon {
  font-size: 2rem;
  line-height: 1;
}

.btn-start-quick .qs-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
}

.btn-start-quick .qs-sub {
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-muted);
  line-height: 1.2;
}

.btn-start-quick.alt {
  background: var(--color-accent);
  color: white;
}

.btn-start-quick.alt .qs-title {
  color: white;
}

.btn-start-quick.alt .qs-sub {
  color: rgba(255, 255, 255, 0.9);
}

.btn-start-quick.alt:hover {
  background: #e85d00;
}

.btn-start-quick.alt2 {
  background: var(--color-success);
  color: white;
}

.btn-start-quick.alt2 .qs-title {
  color: white;
}

.btn-start-quick.alt2 .qs-sub {
  color: rgba(255, 255, 255, 0.9);
}

.btn-start-quick.alt2:hover {
  background: #059669;
}

/* ===== EXAM INFO CARD (Dashboard utama - SNBT style) ===== */
.exam-info-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-top: 5px solid var(--color-primary);
}

/* Titik 3 menu (kebab) di pojok kiri card Mulai Ujian */
.exam-menu-toggle {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #4a5568;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  z-index: 5;
  font-weight: 700;
  letter-spacing: 1px;
}
.exam-menu-toggle:hover { background: #f1f5f9; color: #1a202c; }

.exam-menu {
  position: absolute;
  top: 2.5rem;
  left: 0.75rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  min-width: 260px;
  z-index: 100;
  padding: 0.4rem;
}
.exam-menu-item {
  display: flex; align-items: center; gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #1a202c;
}
.exam-menu-item:hover { background: #f1f5f9; }
.exam-menu-item .menu-icon { font-size: 1.1rem; }
.exam-menu-item .menu-text { flex: 1; }

/* ===== PTN IMPIAN CARD (Dashboard) ===== */
.ptn-impian-card {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border: 2px solid #c4b5fd;
  box-shadow: var(--shadow);
}
.ptn-impian-card.complete {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}
.ptn-impian-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.ptn-impian-header h2 { margin: 0; font-size: 1.25rem; color: #5b21b6; }
.ptn-impian-card.complete .ptn-impian-header h2 { color: #166534; }
.ptn-impian-status {
  background: #fef3c7; color: #92400e; padding: 0.25rem 0.75rem;
  border-radius: 20px; font-size: 0.85rem; font-weight: 600;
}
.ptn-impian-card.complete .ptn-impian-status {
  background: #d1fae5; color: #065f46;
}
.ptn-impian-desc { margin: 0 0 1rem; color: #4c1d95; font-size: 0.95rem; }
.ptn-impian-card.complete .ptn-impian-desc { color: #14532d; }
.ptn-impian-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem; margin: 1rem 0;
}
.ptn-impian-summary-item {
  background: rgba(255,255,255,0.7); padding: 0.75rem; border-radius: 8px;
  border-left: 3px solid #7c3aed;
}
.ptn-impian-summary-item .num {
  display: inline-block; background: #7c3aed; color: white;
  width: 24px; height: 24px; border-radius: 50%; text-align: center;
  line-height: 24px; font-weight: 700; font-size: 0.85rem; margin-right: 0.5rem;
}
.ptn-impian-summary-item .ptn { font-weight: 600; color: #2d3748; }
.ptn-impian-summary-item .jur { font-size: 0.85rem; color: #5b21b6; }
.btn-pilih-ptn {
  background: #7c3aed; color: white; border: none; padding: 0.75rem 1.5rem;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.btn-pilih-ptn:hover { background: #6d28d9; }
.ptn-impian-card.complete .btn-pilih-ptn { background: #16a34a; }
.ptn-impian-card.complete .btn-pilih-ptn:hover { background: #15803d; }

.exam-header-info {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.exam-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-primary);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.exam-header-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.exam-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

.exam-materials {
  margin-bottom: 1.5rem;
}

.exam-materials h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.material-group {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1rem;
}

.material-group-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.material-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.material-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.material-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.material-list .dot.orange {
  background: var(--color-accent);
}

.material-list .badge-time {
  margin-left: auto;
  background: white;
  color: var(--color-text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.exam-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.exam-stat {
  text-align: center;
  padding: 0.5rem;
}

.exam-stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.exam-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.exam-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.exam-action {
  text-align: center;
  margin-top: 1rem;
}

.exam-warning {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== TOMBOL MULAI UJIAN (Sangat Besar & Eye-catching) ===== */
.btn-mulai-ujian {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 61, 130, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-mulai-ujian::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.7s ease;
}

.btn-mulai-ujian:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 61, 130, 0.45);
}

.btn-mulai-ujian:hover::before {
  left: 100%;
}

.btn-mulai-ujian:active {
  transform: translateY(-1px);
}

.bmu-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.bmu-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.bmu-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bmu-sub {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
  text-transform: none;
  letter-spacing: 0;
}

.bmu-arrow {
  font-size: 2rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.btn-mulai-ujian:hover .bmu-arrow {
  transform: translateX(6px);
}

/* ===== STATUS SECTION ===== */
.status-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.status-section .section-title {
  margin-bottom: 1rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.status-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.status-card-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.status-card-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary);
}

.status-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .btn-mulai-ujian {
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }
  .bmu-icon { font-size: 2rem; }
  .bmu-title { font-size: 1.1rem; letter-spacing: 0.5px; }
  .bmu-sub { font-size: 0.75rem; }
  .bmu-arrow { font-size: 1.5rem; }
  .exam-header-info h2 { font-size: 1.2rem; }
}

/* ===== DASHBOARD (MENU UTAMA) ===== */
.dashboard {
  min-height: 100vh;
  background: var(--color-bg);
}

.topbar {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.topbar-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-kelas {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.user-kode-login {
  font-size: 0.75rem;
  color: #1e40af;
  margin-top: 2px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.user-kode-login code {
  background: #dbeafe;
  color: #1e3a8a;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.btn-logout {
  background: var(--color-danger);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.btn-logout:hover { background: #dc2626; }

.dashboard-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.welcome-card {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.welcome-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.welcome-card p {
  opacity: 0.9;
  font-size: 1rem;
}

.welcome-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.welcome-info-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.welcome-info-item .label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.welcome-info-item .value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title .badge {
  background: var(--color-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.subtest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.subtest-card {
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.subtest-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.subtest-card.completed {
  border-color: var(--color-success);
  background: linear-gradient(135deg, #f0fdf4 0%, white 60%);
}

.subtest-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.subtest-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.subtest-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-tps { background: #dbeafe; color: #1e40af; }
.badge-literasi { background: #fef3c7; color: #92400e; }
.badge-done { background: #d1fae5; color: #065f46; }

.subtest-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.subtest-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.subtest-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.subtest-action {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.subtest-action.start {
  background: var(--color-primary);
  color: white;
}

.subtest-action.start:hover {
  background: var(--color-primary-dark);
}

.subtest-action.review {
  background: var(--color-success);
  color: white;
}

.subtest-action.review:hover {
  background: #059669;
}

/* ===== TRYOUT PAGE (PENGERJAAN SOAL) ===== */
.tryout-container {
  min-height: 100vh;
  background: #f9fafb;
}

.exam-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.exam-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.exam-info { display: flex; align-items: center; gap: 1rem; }
.exam-subject { font-weight: 700; color: var(--color-primary); font-size: 0.95rem; }
.exam-progress-info { font-size: 0.85rem; color: var(--color-text-muted); }

.exam-timer {
  background: linear-gradient(135deg, var(--color-danger), #dc2626);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
  min-width: 110px;
  justify-content: center;
}

.exam-timer.warning {
  background: linear-gradient(135deg, var(--color-warning), #d97706);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.exam-actions { display: flex; gap: 0.5rem; }

.exam-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  gap: 1.5rem;
}

.question-area {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  min-height: 500px;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

.question-number {
  background: var(--color-primary);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
}

.question-flag {
  background: none;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.question-flag:hover, .question-flag.flagged {
  border-color: var(--color-warning);
  color: var(--color-warning);
  background: #fef3c7;
}

.question-text {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.options-list { display: flex; flex-direction: column; gap: 0.75rem; }

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: white;
}

.option-item:hover { border-color: var(--color-primary-light); background: #f0f7ff; }
.option-item.selected { border-color: var(--color-primary); background: #eff6ff; }
.option-item.correct { border-color: var(--color-success); background: #f0fdf4; }
.option-item.incorrect { border-color: var(--color-danger); background: #fef2f2; }

.option-label {
  width: 32px;
  height: 32px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}

.option-item.selected .option-label { background: var(--color-primary); color: white; }
.option-item.correct .option-label { background: var(--color-success); color: white; }
.option-item.incorrect .option-label { background: var(--color-danger); color: white; }

.option-text { flex: 1; font-size: 1rem; line-height: 1.5; }

.question-explanation {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f0f9ff;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  display: none;
}

.question-explanation.show { display: block; }
.question-explanation strong { color: var(--color-primary); display: block; margin-bottom: 0.5rem; }

.navigation-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  gap: 1rem;
}

.btn-nav {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-prev { background: white; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn-prev:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.btn-prev:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-next { background: var(--color-primary); color: white; }
.btn-next:hover { background: var(--color-primary-dark); }

/* ===== NAVIGASI SOAL (SIDEBAR) ===== */
.question-nav {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.question-nav-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
  letter-spacing: -0.01em;
}

.nav-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.legend-item { display: flex; align-items: center; gap: 0.4rem; color: var(--color-text-muted); font-weight: 500; }
.legend-box { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.legend-current { background: var(--color-primary); }
.legend-answered { background: var(--color-success); }
.legend-flagged { background: var(--color-warning); }
.legend-empty { background: white; border: 1.5px solid var(--color-border); }

/* ===== NAV CARD: 2 kolom (Materi Ujian | Daftar Soal) ===== */
.nav-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.nav-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}
.nav-col-subtests { flex: 0 0 42%; }
.nav-divider {
  width: 1px; background: #cbd5e0; flex-shrink: 0; margin: 0.25rem 0;
}
.nav-col-questions { flex: 1; min-width: 0; }

/* Subtest buttons (kolom kiri) */
.nav-subtest-list {
  display: flex; flex-direction: column; gap: 0.4rem;
  max-height: 460px; overflow-y: auto;
  padding-right: 0.1rem;
}
.nav-subtest-list::-webkit-scrollbar { width: 4px; }
.nav-subtest-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 2px; }

.nav-sub-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  background: #e2e8f0;
  border: 1.5px solid #cbd5e0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s;
  width: 100%;
}
.nav-sub-btn:hover { border-color: #94a3b8; }
.nav-sub-btn.active {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white; border-color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.3);
}
.nav-sub-btn.done {
  background: #dcfce7; border-color: #86efac; color: #14532d;
}
.nav-sub-btn.locked {
  background: #e2e8f0; color: #94a3b8; cursor: not-allowed; opacity: 0.85;
}
.nav-sub-btn .sub-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.nav-sub-btn.active .sub-icon { background: rgba(255,255,255,0.25); color: white; }
.nav-sub-btn.done .sub-icon { background: #16a34a; color: white; }
.nav-sub-btn.locked .sub-icon { background: #cbd5e0; color: #64748b; }
.nav-sub-btn .sub-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.25;
}
.nav-sub-btn .sub-progress {
  flex-shrink: 0; font-size: 0.7rem; font-weight: 700;
  background: rgba(0,0,0,0.08); padding: 0.1rem 0.4rem; border-radius: 8px;
  white-space: nowrap;
}
.nav-sub-btn.active .sub-progress { background: rgba(255,255,255,0.2); color: white; }
.nav-sub-btn.done .sub-progress { background: #16a34a; color: white; }
.nav-sub-btn.locked .sub-progress { background: #cbd5e0; color: #475569; }

/* Question list (kolom kanan) - rows of 10 */
.nav-q-list {
  display: flex; flex-direction: column; gap: 0.5rem;
  max-height: 460px; overflow-y: auto;
  padding-right: 0.1rem;
}
.nav-q-list::-webkit-scrollbar { width: 4px; }
.nav-q-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 2px; }
.nav-q-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 2px; }

.nav-q-group {
  display: flex; flex-direction: column; gap: 0.3rem;
}
.nav-q-range {
  font-size: 0.7rem; font-weight: 700; color: #475569;
  background: #e2e8f0; padding: 0.25rem 0.5rem;
  border-radius: 4px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.02em;
}
.nav-q-range.active {
  background: #ede9fe; color: #5b21b6;
}
.nav-q-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}
.nav-q-grid .q-num {
  margin: 0; padding: 0; aspect-ratio: 1;
  font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid #cbd5e0; background: white;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.12s;
  color: #475569;
}
.nav-q-grid .q-num:hover { border-color: #7c3aed; transform: scale(1.05); }
.nav-q-grid .q-num.answered {
  background: #16a34a; color: white; border-color: #16a34a;
}
.nav-q-grid .q-num.flagged {
  background: #f59e0b; color: white; border-color: #f59e0b;
}
.nav-q-grid .q-num.flagged.answered {
  background: linear-gradient(135deg, #16a34a 0%, #f59e0b 100%);
  color: white; border-color: #16a34a;
}
.nav-q-grid .q-num.current {
  background: #7c3aed; color: white; border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5);
  font-weight: 800; transform: scale(1.08);
}

@media (max-width: 1100px) {
  .nav-card { flex-direction: column; }
  .nav-divider { width: auto; height: 1px; margin: 0.5rem 0; }
  .nav-col-subtests { flex: 1 1 auto; }
}
@media (max-width: 360px) {
  .nav-q-grid { grid-template-columns: repeat(4, 1fr); }
}

.question-grid {
  display: flex; flex-direction: column; gap: 0.4rem;
  margin-bottom: 1rem; max-height: 380px; overflow-y: auto;
  padding: 0.25rem 0.1rem;
}
.question-grid::-webkit-scrollbar { width: 5px; }
.question-grid::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
.question-grid .q-row {
  display: flex; align-items: center; gap: 0.3rem;
  background: #f8fafc; padding: 0.3rem 0.4rem;
  border-radius: 6px; border: 1px solid #e2e8f0;
}
.question-grid .q-row-label {
  font-size: 0.7rem; font-weight: 700; color: #64748b;
  width: 28px; flex-shrink: 0; text-align: center;
}
.question-grid .q-row-items {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.25rem; flex: 1;
}
.question-grid .q-row-items .q-num {
  margin: 0; padding: 0; aspect-ratio: 1;
  font-size: 0.72rem; font-weight: 600;
  border: 1.5px solid #cbd5e0; background: white;
}
.question-grid .q-row-items .q-num.answered {
  background: #16a34a; color: white; border-color: #16a34a;
}
.question-grid .q-row-items .q-num.flagged {
  background: #f59e0b; color: white; border-color: #f59e0b;
}
.question-grid .q-row-items .q-num.flagged.answered {
  background: linear-gradient(135deg, #16a34a 0%, #f59e0b 100%);
  color: white; border-color: #16a34a;
}
.question-grid .q-row-items .q-num.current {
  background: #7c3aed; color: white; border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5);
  font-weight: 800; transform: scale(1.08);
}

/* ===== NAV SUBTEST (mode sesi lengkap 'all') - Compact Tabs + Row Grid ===== */
.nav-subtest-tabs {
  display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.5rem;
}
.nav-subtest-tab {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: white; border: 1.5px solid #e2e8f0;
  border-radius: 6px; cursor: pointer;
  font-size: 0.78rem; font-weight: 600;
  color: #4a5568;
  transition: all 0.15s;
  text-align: left;
}
.nav-subtest-tab:hover { border-color: #7c3aed; }
.nav-subtest-tab.active {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: white; border-color: #7c3aed;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}
.nav-subtest-tab.done {
  background: #f0fdf4; border-color: #86efac; color: #14532d;
}
.nav-subtest-tab.locked {
  opacity: 0.55; cursor: not-allowed;
  background: #f8fafc;
}
.nav-subtest-tab .tab-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.7rem; font-weight: 700;
  background: #e2e8f0; color: #4a5568; flex-shrink: 0;
}
.nav-subtest-tab.active .tab-icon { background: rgba(255,255,255,0.25); color: white; }
.nav-subtest-tab.done .tab-icon { background: #16a34a; color: white; }
.nav-subtest-tab.locked .tab-icon { background: #cbd5e0; color: #718096; }
.nav-subtest-tab .tab-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}
.nav-subtest-tab .tab-count {
  background: rgba(0,0,0,0.08); padding: 0.1rem 0.45rem;
  border-radius: 10px; font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}
.nav-subtest-tab.active .tab-count { background: rgba(255,255,255,0.25); color: white; }
.nav-subtest-tab.done .tab-count { background: #16a34a; color: white; }
.nav-subtest-tab.locked .tab-count { background: #cbd5e0; color: #475569; }

/* Soal rows: 1 baris = 10 soal (atau kurang) - horizontal rapi */
.nav-questions-list {
  max-height: 380px; overflow-y: auto; padding: 0.25rem 0.1rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.nav-questions-list::-webkit-scrollbar { width: 5px; }
.nav-questions-list::-webkit-scrollbar-thumb { background: #cbd5e0; border-radius: 3px; }
.nav-questions-list::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }

.nav-q-row {
  display: flex; align-items: center; gap: 0.3rem;
  background: #f8fafc; padding: 0.3rem 0.4rem;
  border-radius: 6px; border: 1px solid #e2e8f0;
}
.nav-q-row-label {
  font-size: 0.7rem; font-weight: 700; color: #64748b;
  width: 28px; flex-shrink: 0; text-align: center;
}
.nav-q-row-items {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.25rem; flex: 1;
}
.nav-q-row-items .q-num {
  margin: 0; padding: 0; aspect-ratio: 1;
  font-size: 0.72rem;
  border: 1.5px solid #cbd5e0;
  background: white;
  font-weight: 600;
}
.nav-q-row-items .q-num.answered {
  background: #16a34a; color: white; border-color: #16a34a;
}
.nav-q-row-items .q-num.flagged {
  background: #f59e0b; color: white; border-color: #f59e0b;
}
.nav-q-row-items .q-num.flagged.answered {
  background: linear-gradient(135deg, #16a34a 0%, #f59e0b 100%);
  color: white; border-color: #16a34a;
}
.nav-q-row-items .q-num.current {
  background: #7c3aed; color: white; border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5);
  font-weight: 800; transform: scale(1.08);
}

@media (max-width: 360px) {
  .nav-q-row-items { grid-template-columns: repeat(5, 1fr); }
  .nav-q-row-items .q-num { font-size: 0.7rem; }
}

.q-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.q-num:hover { border-color: var(--color-primary); color: var(--color-primary); }
.q-num.answered { background: var(--color-success); color: white; border-color: var(--color-success); }
.q-num.flagged { background: var(--color-warning); color: white; border-color: var(--color-warning); }
.q-num.current { background: var(--color-primary); color: white; border-color: var(--color-primary); transform: scale(1.1); }

.btn-finish {
  width: 100%;
  background: var(--color-danger);
  color: white;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-finish:hover { background: #dc2626; }

/* ===== RESULT PAGE ===== */
.result-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.result-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.result-header h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.result-score { font-size: 4rem; font-weight: 800; margin: 1rem 0; }
.result-status {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}
.status-lulus { background: var(--color-success); }
.status-tidak { background: var(--color-danger); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.summary-card .icon { font-size: 2rem; margin-bottom: 0.5rem; }
.summary-card .value { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.summary-card .label { color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0.25rem; }

.subtest-results {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.subtest-result-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  font-size: 0.9rem;
}

.subtest-result-row:last-child { border-bottom: none; }
.subtest-result-row.header { font-weight: 700; background: var(--color-bg); border-radius: var(--radius); }
.subtest-result-row .score-correct { color: var(--color-success); font-weight: 600; }
.subtest-result-row .score-wrong { color: var(--color-danger); font-weight: 600; }

.btn-group { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.show { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal h3 { margin-bottom: 1rem; color: var(--color-text); }
.modal p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.5rem; justify-content: center; }

@media (max-width: 1024px) {
  .exam-body { grid-template-columns: 1fr; }
  .question-nav { position: static; max-height: none; }
}

@media (max-width: 768px) {
  .topbar { padding: 0.75rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .user-info { gap: 0.5rem; }
  .user-name, .user-kelas { display: none; }
  .dashboard-content { padding: 1rem; }
  .welcome-card { padding: 1.5rem; }
  .welcome-card h1 { font-size: 1.25rem; }
  .exam-body { padding: 1rem; }
  .question-area { padding: 1.5rem 1rem; }
  .exam-header-inner { padding: 0.5rem; }
  .exam-info { flex: 1; }
  .subtest-result-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .subtest-result-row.header { display: none; }
}

@media (max-width: 480px) {
  .login-box { padding: 2rem 1.5rem; }
  .login-header h1 { font-size: 1.5rem; }
  .result-score { font-size: 3rem; }
  .question-text { font-size: 0.95rem; }
  .option-item { padding: 0.75rem; }
  .question-grid { gap: 0.3rem; }
  .q-num { width: 28px; height: 28px; min-width: 28px; font-size: 0.75rem; }
}
/* ============================================
   ADDON: Subtest Card, Ongoing Banner, Alert, Timer Critical
   ============================================ */

/* ===== Subtest Grid (Dashboard) ===== */
.subtest-grid-section { margin-top: 2rem; }
.subtest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.subtest-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.subtest-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--color-primary-light);
}
.subtest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}
.subtest-group {
  background: var(--color-bg);
  color: var(--color-text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.subtest-status { font-weight: 700; font-size: 0.75rem; }
.subtest-status-lulus { color: var(--color-success); }
.subtest-status-tidak { color: var(--color-danger); }
.subtest-status-belum { color: var(--color-text-muted); }
.subtest-name {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.subtest-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.subtest-progress {
  background: var(--color-bg);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.subtest-progress-bar { height: 100%; transition: width 0.4s; }
.subtest-score {
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.btn-start-subtest, .btn-view {
  display: block;
  text-align: center;
  padding: 0.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  transition: all 0.2s;
}
.btn-start-subtest { background: var(--color-primary); color: white; }
.btn-start-subtest:hover { background: var(--color-primary-dark); }
.btn-view { background: var(--color-bg); color: var(--color-primary); border: 1px solid var(--color-border); }
.btn-view:hover { background: var(--color-primary); color: white; border-color: var(--color-primary); }

/* ===== Ongoing Session Banner ===== */
.ongoing-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.ongoing-banner-icon { font-size: 1.75rem; }
.ongoing-banner-content { flex: 1; min-width: 200px; }
.ongoing-banner-content strong { color: #92400e; display: block; margin-bottom: 0.2rem; }
.ongoing-banner-content span { color: #78350f; font-size: 0.9rem; }
.ongoing-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ongoing-banner-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
#ongoing-resume { background: #f59e0b; color: white; }
#ongoing-resume:hover { background: #d97706; }
#ongoing-cancel { background: white; color: #92400e; border: 1px solid #f59e0b !important; }
#ongoing-cancel:hover { background: #fef3c7; }

/* ===== Tryout Alert (non-blocking) ===== */
.tryout-alert {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.tryout-alert-info { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
.tryout-alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #f59e0b; }
.tryout-alert-error { background: #fef2f2; color: #b91c1c; border-left: 4px solid #ef4444; }

/* ===== Timer Critical State ===== */
.exam-timer.critical {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ===== Question Nav Grid (Q-num items) ===== */
.q-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  border: 2px solid transparent;
}
.q-num:hover { background: var(--color-border); transform: scale(1.05); }
.q-num.answered { background: #d1fae5; color: #065f46; border-color: #10b981; }
.q-num.flagged { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.q-num.flagged.answered { background: linear-gradient(135deg, #d1fae5 0%, #fef3c7 100%); }
.q-num.current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary-dark);
  box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.2);
  transform: scale(1.1);
}
.q-num sub { margin-left: 1px; }

/* ===== Option Item (Tryout) ===== */
.option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 0.6rem;
}
.option-item:hover {
  border-color: var(--color-primary-light);
  background: #f9fafb;
  transform: translateX(2px);
}
.option-item.selected {
  background: #eff6ff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.1);
}
.option-item .option-label {
  background: var(--color-bg);
  color: var(--color-text);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.15s;
}
.option-item.selected .option-label { background: var(--color-primary); color: white; }
.option-item .option-text { flex: 1; line-height: 1.5; padding-top: 4px; }

/* ===== Question Flag Button ===== */
.question-flag {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.question-flag:hover { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.question-flag.flagged {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
  font-weight: 700;
}

/* ===== Nav Legend ===== */
.legend-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  margin-right: 0.4rem;
  vertical-align: middle;
  border: 1px solid var(--color-border);
}
.legend-current { background: var(--color-primary); border-color: var(--color-primary); }
.legend-answered { background: #d1fae5; border-color: #10b981; }
.legend-flagged { background: #fef3c7; border-color: #f59e0b; }
.legend-empty { background: var(--color-bg); }

/* ===== Badge Done (Result) ===== */
.badge-done {
  background: var(--color-success);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.3rem;
}

/* ===== Print-friendly ===== */
@media print {
  .topbar, .question-nav, .navigation-bar, .exam-actions, button { display: none !important; }
  .exam-body { grid-template-columns: 1fr !important; }
  body { background: white; }
}

/* ===== Accessibility - Focus visible ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 61, 130, 0.4);
  outline-offset: 2px;
}

/* ===== Disabled state ===== */
button:disabled, .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* ===== Keyboard Hint & small buttons (tryout addon) ===== */
.keyboard-hint {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}
.keyboard-hint kbd {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  margin: 0 0.15rem;
  font-weight: 700;
  box-shadow: 0 1px 0 var(--color-border);
}
.btn-small { padding: 0.5rem 0.9rem !important; font-size: 0.85rem !important; }

.nav-stats {
  background: #f9fafb;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.nav-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}
.progress-bar-thin {
  background: var(--color-bg);
  height: 6px;
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.progress-bar-fill {
  background: var(--color-primary);
  height: 100%;
  width: 0%;
  transition: width 0.3s;
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}
.back-link:hover { color: var(--color-primary); }

/* placeholder */

/* ============================================
   FORM DIVIDER (separator dengan label)
   ============================================ */
.form-divider {
  display: flex;
  align-items: center;
  margin: 1.25rem 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.form-divider span {
  padding: 0 0.75rem;
  background: white;
}

/* ============================================
   SUCCESS CARD + KODE LOGIN DISPLAY
   ============================================ */
.success-card {
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  margin: 0 auto 1rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.success-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #d1fae5 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}
.success-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success);
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  position: relative;
  z-index: 1;
}

.kode-login-display {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px dashed #3b82f6;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.kode-login-label {
  font-size: 0.85rem;
  color: #1e40af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.kode-login-value {
  font-family: 'Courier New', monospace;
  font-size: 2.25rem;
  font-weight: 800;
  color: #003c71;
  background: white;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
  letter-spacing: 0.25em;
  user-select: all;
  -webkit-user-select: all;
  border: 1px solid #bfdbfe;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
  word-break: break-all;
}

.kode-login-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #475569;
  margin: 0.75rem 0 1rem;
}
.kode-login-meta strong {
  color: var(--color-primary);
  font-weight: 600;
}

.kode-login-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PESERTA LIST - KODE LOGIN BADGE
   ============================================ */
.peserta-kode-login {
  font-size: 0.8rem;
  color: #1e40af;
  margin-top: 0.25rem;
  font-weight: 500;
}
.peserta-kode-login code {
  background: #dbeafe;
  color: #1e3a8a;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

/* ============================================
   SUCCESS ANIMATION
   ============================================ */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
