/**
 * style.css - Sistem Desain Evaluasi PKL Teknik Sipil Politeknik Negeri Padang
 * Template: Bold Portfolio Hero (design.md)
 * Palet: Vermelho-Laranja (#fd2601) ke Laranja (#f37e1c), Inter + JetBrains Mono
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Palet Warna Primer & Aksen: Hitam & Kuning Teknik Sipil (Light Mode) */
  --primary: #0f172a;               /* Hitam Pekat Elegan (Slate 900) */
  --primary-hover: #1e293b;         /* Slate 800 */
  --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --primary-gradient-v: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  
  --yellow: #f59e0b;                /* Kuning Amber Kontras Tinggi */
  --yellow-main: #eab308;           /* Kuning Emas Konstruksi */
  --yellow-hover: #ca8a04;          /* Kuning Gelap Hover */
  --yellow-gradient: linear-gradient(135deg, #facc15 0%, #eab308 100%);
  --yellow-bg: #fef9c3;             /* Latar Kuning Lembut Terbaca */
  --yellow-border: #fde047;         /* Garis Tepi Kuning */
  --yellow-text: #713f12;           /* Teks Gelap Terbaca di atas Latar Kuning */

  --secondary: #eab308;
  --accent: #eab308;
  --blob-orange: #fde047;

  /* Permukaan & Latar Belakang (Light Mode Bersih) */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-dark: #0f172a;
  --border-color: #e2e8f0;
  --border-dark: #1e293b;

  /* Dimensi & Grid Layout Lebar Penuh Proporsional */
  --container-max: 1640px;

  /* Tipografi Warna (Bebas Pure Black #000000) */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #ffffff;

  /* Status Semantik */
  --success: #15803d;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --info: #0369a1;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;

  /* Tipografi Font: Bersih, Modern & Sangat Terbaca Jelas oleh Semua Kalangan */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometri & Bentuk (design.md: 8px base) */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Bayangan & Elevasi */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-hero: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-modal: 0 20px 40px rgba(15, 23, 42, 0.2);

  /* Transisi Halus (design.md: 200-300ms ease-out) */
  --transition: all 220ms ease-out;
}

/* ============================================== */
/* RESET DASAR & GLOBAL STYLING                  */
/* ============================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-canvas);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Tipografi Utama (Inter Proporsional & Terbaca Jelas oleh Semua Kalangan) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 0.75rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================== */
/* BILAH NAVIGASI ATAS                            */
/* ============================================== */
.top-navbar {
  background: var(--bg-surface);
  border-bottom: 3.5px solid var(--yellow-main);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.top-navbar-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 2.5vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fde047;
  background: #0f172a;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
  border: 1.5px solid var(--yellow-main);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-text h1 {
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-base);
  border: 1.5px solid var(--border-color);
  color: #0f172a;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--yellow-bg);
  color: #0f172a;
  border-color: var(--yellow-main);
}

.nav-btn.active {
  background: #0f172a;
  color: #fef08a !important;
  border-color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

/* ============================================== */
/* KONTAINER UTAMA                                */
/* ============================================== */
.main-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2.25rem) clamp(1rem, 2.5vw, 2.5rem) 5rem;
  flex: 1;
}

/* ============================================== */
/* HERO BANNER & INFORMASI MAHASISWA              */
/* ============================================== */
.info-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-top: 4.5px solid var(--yellow-main);
  border-radius: var(--radius-base);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
  position: relative;
}

.info-banner-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  padding: 1.5rem clamp(1.25rem, 2.5vw, 2.5rem);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Efek Luminous Glow Blob */
.info-banner-header::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.18) 0%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.info-banner-header h2 {
  color: var(--text-light);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--yellow-bg);
  color: var(--yellow-text);
  border: 1px solid var(--yellow-border);
}

.info-banner-header .badge-tag {
  background: rgba(254, 240, 138, 0.18);
  color: #fef08a;
  border: 1px solid rgba(250, 204, 21, 0.55);
}

.badge-tag.info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

.badge-tag.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-tag.warning {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid var(--warning-border);
}

.info-banner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 2vw, 2rem);
  background: var(--bg-surface);
}

@media (max-width: 1280px) {
  .info-banner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .info-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 440px) {
  .info-banner-grid {
    grid-template-columns: 1fr;
  }
}

.info-item {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}

.info-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.info-item label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.info-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
  line-height: 1.35;
  word-break: break-word;
}

.info-item span#bannerStudentNim {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 700;
}

/* ============================================== */
/* KOTAK PENCARIAN NIM (AUTOFILL)                 */
/* ============================================== */
.nim-lookup-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-base);
  padding: 1.25rem clamp(1.25rem, 2vw, 2rem);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.nim-lookup-header {
  margin-bottom: 0.75rem;
}

.nim-lookup-header label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-main);
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 3px;
}

.nim-lookup-header span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.nim-input-group {
  display: flex;
  gap: 12px;
  max-width: 680px;
}
}

.nim-input-field {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-base);
  background: var(--bg-surface);
  outline: none;
  transition: var(--transition);
}

.nim-input-field:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.35);
}

.nim-lookup-feedback {
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
  display: none;
}

.nim-lookup-feedback.success {
  display: block;
  color: var(--success);
  background: var(--success-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--success-border);
}

.nim-lookup-feedback.error {
  display: block;
  color: var(--danger);
  background: var(--danger-bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--danger-border);
}

/* ============================================== */
/* NOTIFIKASI MAHASISWA TELAH DI-SUBMIT           */
/* ============================================== */
.submitted-notice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-base);
  padding: 16px 20px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.submitted-notice-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.submitted-notice-content {
  flex: 1;
}

.submitted-notice-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 4px;
}

.submitted-notice-content p {
  font-size: 0.875rem;
  color: #166534;
  margin-bottom: 12px;
  line-height: 1.5;
}

.submitted-notice-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============================================== */
/* STEPPER WIZARD NAVIGASI                        */
/* ============================================== */
.stepper-container {
  margin-bottom: 2rem;
}

.stepper {
  display: flex;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  gap: 8px;
  overflow-x: auto;
}

.step-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.step-circle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-base);
  background: var(--bg-muted);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.step-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
}

.step-item.active {
  background: var(--yellow-bg);
  border-bottom: 3px solid var(--yellow-main);
}

.step-item.active .step-circle {
  background: #0f172a;
  color: #fde047;
  border: 2px solid var(--yellow-main);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.step-item.active .step-title {
  color: #0f172a;
  font-weight: 700;
}

.step-item.completed .step-circle {
  background: var(--yellow-main);
  color: #0f172a;
  font-weight: 800;
  border: 2px solid #ca8a04;
}

.step-item.completed .step-title {
  color: #0f172a;
}

/* ============================================== */
/* FLOATING STATUS & LIVE SCORE BAR               */
/* ============================================== */
.floating-status-bar {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--yellow-main);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: 12px 20px;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.progress-info {
  flex: 1;
}

.progress-info-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--yellow-gradient);
  border-radius: var(--radius-pill);
  transition: width 300ms ease-out;
}

.live-score-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-color);
}

.score-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.grade-badge {
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 4px 12px;
  background: #0f172a;
  color: #fde047;
  border: 1.5px solid var(--yellow-main);
  border-radius: var(--radius-base);
  line-height: 1.1;
}

/* ============================================== */
/* KARTU FORMULIR (CARDS)                         */
/* ============================================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-bottom: 2rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.card-header h2 {
  font-size: 1.35rem;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.card-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 4px 0 0;
}

/* ============================================== */
/* GRID & KONTROL FORMULIR                        */
/* ============================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-group label .req {
  color: var(--primary);
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-base);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.35);
}

.form-control.has-error {
  border-color: #ef4444 !important;
  background-color: #fff8f8 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.btn-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.btn-chip:hover {
  background: #fff5f5;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* Radio Group Inline */
.radio-group-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.radio-pill-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  padding: 6px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.radio-pill-label:hover {
  background: var(--yellow-bg);
  border-color: var(--yellow-main);
}

.radio-pill-label:has(input:checked) {
  background: var(--yellow-bg);
  border-color: var(--yellow-main);
}

.radio-pill-label input:checked + span {
  font-weight: 700;
  color: #0f172a;
}

/* ============================================== */
/* TAB SUB-BAGIAN (STEP 2: BAGIAN A - E)          */
/* ============================================== */
.sub-section-tabs,
.section-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.sec-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 3.5px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: var(--transition);
}

.sec-tab-btn:hover {
  color: #0f172a;
}

.sec-tab-btn.active {
  color: #0f172a;
  border-bottom-color: var(--yellow-main);
  font-weight: 700;
}

.tab-badge,
.badge-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 2px 8px;
  background: var(--bg-muted);
  color: var(--text-body);
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.sec-tab-btn.active .tab-badge,
.sec-tab-btn.active .badge-count {
  background: #0f172a;
  color: #fde047;
}

.sub-section-content {
  display: none;
}

.sub-section-content.active {
  display: block;
}

/* ============================================== */
/* BUTIR PERTANYAAN KUANTITATIF                   */
/* ============================================== */
.question-item {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 1.35rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  position: relative;
}

.question-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.question-item.answered {
  border-color: #cbd5e1;
  background: #fbfdfc;
  border-left: 4px solid var(--success);
}

.question-item.answered .question-number {
  background: var(--success);
  color: #ffffff;
}

.question-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.question-number {
  font-family: var(--font-display);
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  background: var(--bg-muted);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.question-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.5;
  padding-top: 3px;
}

/* Skala Pilihan Nilai 1 - 5 + N/A (6 Kolom Proporsional) */
.scale-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 1080px) {
  .scale-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .scale-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.scale-label {
  cursor: pointer;
}

.scale-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
}

.scale-tile {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 12px 6px;
  text-align: center;
  background: var(--bg-surface);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.scale-label:hover .scale-tile {
  border-color: var(--yellow-main);
  background: #fef9c3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.tile-score {
  font-family: var(--font-display);
  font-size: 1.45rem;
  display: block;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 2px;
}

.tile-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  line-height: 1.25;
}

.scale-label input[type="radio"]:checked + .scale-tile {
  background: #0f172a;
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
}

.scale-label input[type="radio"]:checked + .scale-tile .tile-score {
  color: #facc15;
}

.scale-label input[type="radio"]:checked + .scale-tile .tile-text {
  color: #ffffff;
}

/* ============================================== */
/* TOMBOL UTAMA (BUTTONS)                         */
/* ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-base);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--yellow-gradient);
  color: #0f172a !important;
  font-weight: 700;
  border: 1.5px solid #d97706;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.35);
}

.btn-primary:hover {
  background: #0f172a;
  color: #fde047 !important;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: #0f172a;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #0f172a;
  color: #0f172a;
}

.btn-accent {
  background: var(--neutral-slate);
  color: var(--text-light);
}

.btn-accent:hover {
  background: var(--bg-dark);
}

.btn-success {
  background: #16a34a;
  color: var(--text-light);
}

.btn-success:hover {
  background: #15803d;
}

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

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}

/* ============================================== */
/* KANVAS TANDA TANGAN DIGITAL                    */
/* ============================================== */
.signature-card {
  background: #fbfcfe;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.signature-canvas {
  width: 100%;
  max-width: 680px;
  height: 230px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-base);
  touch-action: none;
  cursor: crosshair;
  display: block;
  margin: 0 auto 12px;
  transition: border-color 0.2s ease;
}

.signature-canvas:hover {
  border-color: var(--primary);
}

.signature-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ============================================== */
/* TANDA TERIMA BERITA ACARA RESMI (STEP 5)       */
/* ============================================== */
.receipt-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 3vw, 3rem);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

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

.receipt-header h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-top: 8px;
}

.receipt-scores-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.75rem;
}

.receipt-scores-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.receipt-scores-table tr:last-child td {
  border-bottom: none;
}

.qr-code-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ============================================== */
/* Dashboard ADMIN: STATISTIK & ANALITIK             */
/* ============================================== */
.dash-grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1100px) {
  .dash-grid-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .dash-grid-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

/* Grid Analitik Kurikulum Proporsional */
.dash-grid-analytics {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1080px) {
  .dash-grid-analytics {
    grid-template-columns: 1fr;
  }
}

/* Tabel Data Rekapitulasi */
.data-table-container {
  overflow-x: auto;
  border-radius: var(--radius-base);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--bg-muted);
  color: var(--text-main);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-color);
  text-align: left;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #fafaf9;
}

/* ============================================== */
/* LOGIN ADMIN CARD                               */
/* ============================================== */
.admin-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 1rem;
  min-height: 55vh;
}

.admin-login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  position: relative;
}

.admin-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-base) var(--radius-base) 0 0;
}

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

.admin-login-header h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-top: 10px;
  margin-bottom: 4px;
}

.admin-login-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.admin-login-footer {
  text-align: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
}

.alert-box.error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
}

/* ============================================== */
/* MODAL DIALOG                                   */
/* ============================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 300;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

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

.modal-content {
  background: var(--bg-surface);
  border-radius: var(--radius-base);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-color);
  padding: 2rem;
}

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

.modal-header h3 {
  font-size: 1.25rem;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--danger);
}

/* ============================================== */
/* PRINT MEDIA (LATEX-GRADE ACADEMIC LAYOUT)      */
/* Sesuai Format Baku PNP & Evaluasi PKL Mahasiswa */
/* ============================================== */
.print-header {
  display: none;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 12mm 8mm 12mm;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .top-navbar,
  .nim-lookup-box,
  .stepper-container,
  .floating-status-bar,
  .wizard-actions,
  .submitted-notice-card,
  .no-print {
    display: none !important;
  }

  .print-header {
    display: block !important;
    margin-bottom: 10px !important;
  }

  .main-container {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  /* Info Banner Styling during Print to match Evaluasi Format PDF */
  .info-banner {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    box-shadow: none !important;
  }

  .info-banner-header {
    display: none !important; /* Sembunyikan header web pada cetakan */
  }

  .info-banner-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin: 0 0 10px 0 !important;
  }

  .info-item {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    box-shadow: none !important;
  }

  .info-item label {
    font-size: 6.8pt !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.04em !important;
  }

  .info-item span {
    font-size: 9pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  .info-item span#bannerStudentNim {
    color: #e11d48 !important; /* Warna merah sesuai Format PDF */
    font-weight: 800 !important;
  }

  /* Receipt Wrapper matching Evaluasi Format PDF */
  .receipt-wrapper {
    display: block !important;
    box-shadow: none !important;
    border: 1.5px solid #22c55e !important; /* Border hijau resmi */
    border-radius: 10px !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    background: #ffffff !important;
  }

  .receipt-header {
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  .receipt-header .badge-tag.success {
    display: inline-block !important;
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    border-radius: 9999px !important;
    padding: 2px 10px !important;
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-bottom: 4px !important;
  }

  .receipt-header h3 {
    font-size: 12pt !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 3px 0 2px 0 !important;
  }

  .receipt-header p {
    font-size: 8pt !important;
    color: #64748b !important;
    margin: 0 !important;
  }

  .receipt-scores-table {
    width: 100% !important;
    margin-bottom: 10px !important;
    border-collapse: collapse !important;
  }

  .receipt-scores-table td {
    padding: 5px 8px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 8.5pt !important;
  }

  .receipt-scores-table tr:last-child td {
    border-bottom: none !important;
  }

  #receiptFinalScore {
    color: #e11d48 !important; /* Nilai merah tebal */
    font-size: 12pt !important;
    font-weight: 800 !important;
  }

  .qr-code-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    margin: 10px 0 !important;
  }

  .qr-code-box svg {
    width: 72px !important;
    height: 72px !important;
  }

  .qr-code-box div {
    font-size: 7.5pt !important;
    line-height: 1.3 !important;
  }
}

/* ============================================== */
/* KOMPONEN INPUT KALENDER RENTANG WAKTU (PKL)     */
/* ============================================== */
.date-range-box {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 12px 14px;
  position: relative;
  transition: var(--transition);
}

.date-range-box:focus-within {
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.35);
}

.date-range-inputs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.date-range-input-col {
  flex: 1;
  min-width: 135px;
}

.date-input-sublabel {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.date-picker-input {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  padding: 8px 10px;
  background-color: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 100%;
  color: var(--text-main);
  transition: var(--transition);
}

.date-picker-input:hover,
.date-picker-input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
}

.date-range-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.date-range-btn-col {
  padding-top: 18px;
}

.btn-cal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Popover Kalender Rentang Interaktif */
.interactive-cal-popover {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-base);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  padding: 14px;
  z-index: 99;
}

.cal-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cal-nav-arrow {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.cal-nav-arrow:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.cal-current-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day-cell {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
  color: var(--text-main);
}

.cal-day-cell:hover:not(.empty):not(.disabled) {
  background: #f1f5f9;
}

.cal-day-cell.empty {
  cursor: default;
}

.cal-day-cell.in-range {
  background: var(--yellow-bg);
  color: var(--yellow-text);
  border-radius: 0;
}

.cal-day-cell.range-start {
  background: #0f172a !important;
  color: #fde047 !important;
  font-weight: 700;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cal-day-cell.range-end {
  background: #0f172a !important;
  color: #fde047 !important;
  font-weight: 700;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cal-day-cell.range-start.range-end {
  border-radius: 4px !important;
}

.cal-popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.cal-status-hint {
  font-size: 11px;
  color: var(--text-muted);
}

/* Preset Chips */
.period-preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
}

.preset-pill {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}

.preset-pill:hover {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: #cbd5e1;
}

.preset-pill.active {
  background: var(--yellow-bg);
  border-color: var(--yellow-main);
  color: var(--yellow-text);
  font-weight: 700;
}

/* Summary Box */
.period-formatted-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 8px;
}

.period-formatted-summary .summary-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.period-formatted-summary .summary-bullet {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-main);
}

.period-formatted-summary .summary-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

.period-formatted-summary .summary-duration-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #fef9c3;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--yellow-main);
}

/* ============================================== */
/* TIMER RETENSI KUOTA FIREBASE SPARK & ADMIN TABS*/
/* ============================================== */

/* Retention Timer Banner (Live Alert Top) */
.retention-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: var(--radius-base);
  padding: 12px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.08);
  flex-wrap: wrap;
}

.retention-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.retention-badge-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #d97706;
  position: relative;
  flex-shrink: 0;
}

.retention-badge-pulse::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(217, 119, 6, 0.4);
  animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.retention-banner-title {
  font-size: 13.5px;
  color: #78350f;
  font-weight: 600;
}

.countdown-highlight {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #b45309;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  margin-left: 4px;
}

.retention-banner-sub {
  font-size: 12px;
  color: #92400e;
  margin-top: 2px;
}

.retention-banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ============================================== */
/* ADMIN SIDEBAR & MODERN APP LAYOUT              */
/* ============================================== */

.admin-app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  position: relative;
  width: 100%;
}

/* Sidebar Styles */
.admin-sidebar {
  width: 270px;
  background: #0f172a;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #1e293b;
  z-index: 100;
  flex-shrink: 0;
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
  border: 1px solid var(--yellow-main);
  flex-shrink: 0;
}

.sidebar-brand-text h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.sidebar-brand-text p {
  font-size: 0.72rem;
  color: var(--yellow-main);
  font-weight: 600;
  margin: 0;
}

.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 14px 14px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow-main);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.user-info strong {
  font-size: 12.5px;
  color: #ffffff;
}

.user-info span {
  font-size: 10.5px;
  color: #94a3b8;
}

/* Sidebar Navigation Menu */
.sidebar-menu {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu-category {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
  padding: 12px 10px 4px;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  color: #94a3b8;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 180ms ease;
  position: relative;
}

.sidebar-menu-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu-item.active {
  color: #fde047;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.2) 0%, rgba(234, 179, 8, 0.04) 100%);
  border-left-color: var(--yellow-main);
}

.sidebar-menu-item .menu-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-menu-item .menu-text {
  flex: 1;
}

.sidebar-menu-item .menu-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.sidebar-menu-item.active .menu-badge {
  background: var(--yellow-main);
  color: #0f172a;
  font-weight: 800;
}

/* Sidebar Footer & Quota Mini Box */
.sidebar-footer {
  padding: 14px 14px 18px;
  border-top: 1px solid #1e293b;
  background: rgba(15, 23, 42, 0.6);
}

.sidebar-quota-box {
  background: rgba(254, 243, 199, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.sidebar-quota-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sidebar-timer-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  color: #fbbf24;
}

.sidebar-quota-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin: 6px 0 4px;
}

.sidebar-quota-progress {
  height: 100%;
  background: #f59e0b;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.sidebar-actions-row {
  display: flex;
  gap: 8px;
}

.sidebar-btn-link {
  flex: 1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  border: 1px solid #334155;
  transition: all 180ms ease;
}

.sidebar-btn-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-btn-logout {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 180ms ease;
}

.sidebar-btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
}

/* Main Content Area */
.admin-main-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 60px;
  background: #ffffff;
  border-bottom: 3.5px solid var(--yellow-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 9px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-main);
  line-height: 1;
}

.topbar-breadcrumb {
  font-size: 13.5px;
  color: var(--text-muted);
}

.topbar-breadcrumb strong {
  color: var(--text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-quota-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  color: #92400e;
  font-weight: 600;
}

.admin-content-body {
  padding: 24px 28px;
  flex: 1;
}

/* Sub-nav in Data Mahasiswa */
.sub-tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
}

.sub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 180ms ease;
}

.sub-tab-btn:hover {
  color: #0f172a;
}

.sub-tab-btn.active {
  color: #0f172a;
  border-bottom: 3.5px solid var(--yellow-main);
  font-weight: 700;
}

.sub-tab-btn .tab-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--bg-muted);
  color: var(--text-muted);
}

.sub-tab-btn.active .tab-badge {
  background: var(--yellow-bg);
  color: var(--yellow-text);
  border: 1px solid var(--yellow-border);
}

.admin-view-panel {
  display: none;
  animation: fadeInTab 220ms ease;
}

.admin-view-panel.active {
  display: block;
}

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

/* Mobile Responsive for Admin Sidebar */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 95;
    backdrop-filter: blur(2px);
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .topbar-toggle-btn {
    display: inline-flex;
  }

  .sidebar-close-mobile-btn {
    display: inline-flex;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
  }

  .admin-content-body {
    padding: 16px 14px;
  }
}

@media (min-width: 993px) {
  .sidebar-close-mobile-btn {
    display: none;
  }
}

/* Retention Tab Styles & Live Countdown Clock */
.retention-card-hero {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--primary);
  padding: 24px;
}

.retention-clock-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px;
  margin: 20px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(15, 23, 42, 0.12);
}

.retention-clock-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.clock-val {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  letter-spacing: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.clock-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

.retention-clock-separator {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--yellow-main);
  padding-bottom: 22px;
}

.retention-schedule-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* All Data View (Semua Inputan) */
.all-data-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.all-data-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 180ms ease;
}

.all-data-card:hover {
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}

.all-data-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.all-data-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.all-data-sub-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.all-data-sub-box-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-row-item {
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.detail-row-item:last-child {
  border-bottom: none;
}

.score-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.score-sub-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.score-sub-pill.high {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

/* Detail Modal Styles */
.modal-detail-sec {
  margin-bottom: 22px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.modal-detail-sec-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  font-size: 13px;
}

.modal-detail-grid .field-label {
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.modal-detail-grid .field-value {
  color: var(--text-main);
  font-weight: 600;
}

.modal-q-item {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
}

.modal-q-item:nth-child(even) {
  background: var(--bg-canvas);
}

.modal-qualitative-card {
  background: var(--bg-canvas);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.modal-qualitative-card .q-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.modal-qualitative-card .q-ans {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}

/* ============================================== */
/* RESPONSIVE MOBILE & TABLET OPTIMIZATIONS       */
/* ============================================== */

@media (max-width: 768px) {
  /* 1. Header & Navigation */
  .top-navbar-container {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .brand-logo-img {
    width: 38px;
    height: 38px;
  }

  .brand-text h1 {
    font-size: 1rem;
    line-height: 1.15;
  }

  .brand-text p {
    font-size: 0.75rem;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav-btn {
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.8rem;
    text-align: center;
    white-space: nowrap;
  }

  /* 2. Container & Card Spacing */
  .main-container {
    padding: 1rem 0.85rem 4rem;
  }

  .card {
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-base);
  }

  .card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-header h2 {
    font-size: 1.2rem;
  }

  /* 3. NIM Search Box */
  .nim-lookup-box {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .nim-input-group {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 8px;
  }

  .nim-input-field {
    width: 100%;
    font-size: 1rem;
    padding: 11px 12px;
  }

  #btnSearchNim {
    width: 100%;
    padding: 11px;
    font-size: 0.9rem;
  }

  /* 4. Info Banner */
  .info-banner {
    margin-bottom: 1.25rem;
  }

  .info-banner-header {
    padding: 1.25rem 1rem;
  }

  .info-banner-header h2 {
    font-size: 1.25rem;
  }

  .info-banner-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 1rem;
  }

  .info-item {
    padding: 8px 12px;
  }

  /* 5. Stepper Wizard Bar */
  .stepper-container {
    margin-bottom: 1.25rem;
  }

  .stepper {
    padding: 6px 8px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .stepper::-webkit-scrollbar {
    display: none;
  }

  .step-item {
    min-width: 130px;
    padding: 8px 10px;
    gap: 8px;
  }

  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .step-title {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  /* 6. Sticky Floating Bar */
  .floating-status-bar {
    top: 60px;
    padding: 10px 14px;
    margin-bottom: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .progress-info-text {
    font-size: 0.78rem;
  }

  .live-score-badge {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .score-num {
    font-size: 1.5rem;
  }

  .grade-badge {
    font-size: 1rem;
    padding: 3px 10px;
  }

  /* 7. Sub-Section Tabs (Step 2) */
  .sub-section-tabs {
    gap: 6px;
    margin-bottom: 1.25rem;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sub-section-tabs::-webkit-scrollbar {
    display: none;
  }

  .sec-tab-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }

  /* 8. Questions & Scale Options (Step 2) */
  .question-item {
    padding: 1rem 0.85rem;
    margin-bottom: 1rem;
  }

  .question-header {
    gap: 10px;
    margin-bottom: 0.85rem;
  }

  .question-number {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .question-text {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  /* 3x2 Grid for Mobile Scales: 1, 2, 3 in row 1; 4, 5, NA in row 2 */
  .scale-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .scale-tile {
    min-height: 60px;
    padding: 8px 4px;
  }

  .tile-score {
    font-size: 1.2rem;
  }

  .tile-text {
    font-size: 0.65rem;
    line-height: 1.15;
  }

  /* 9. Wizard Action Buttons */
  .wizard-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .wizard-actions .btn {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
  }

  /* 10. Digital Signature Card */
  .signature-card {
    padding: 1rem 0.75rem;
  }

  .signature-canvas {
    height: 190px;
  }

  /* 11. Step 5 Official Receipt */
  .receipt-wrapper {
    padding: 1.25rem 1rem;
  }

  .receipt-header h3 {
    font-size: 1.2rem;
  }

  .receipt-scores-table td {
    padding: 8px 8px;
    font-size: 0.85rem;
  }

  .qr-code-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 1rem;
  }

  /* 12. Admin Dashboard Layout */
  .dash-grid-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dash-grid-analytics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-login-card {
    padding: 1.75rem 1.25rem;
  }

  .modal-content {
    padding: 1.25rem 1rem;
    width: 95%;
    max-width: 95vw;
    margin: 10px;
  }
}

@media (max-width: 480px) {
  /* Layar Ponsel Ringkas (320px - 480px) */
  .nav-links {
    grid-template-columns: 1fr;
  }

  .scale-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .scale-tile {
    min-height: 56px;
    padding: 6px 2px;
  }

  .tile-score {
    font-size: 1.1rem;
  }

  .tile-text {
    font-size: 0.62rem;
  }

  .radio-group-inline {
    flex-direction: column;
    gap: 6px;
  }

  .radio-pill-label {
    width: 100%;
  }
}

/* ============================================== */
/* SWEETALERT2 MODERN CUSTOM THEME (PNP SIPIL)    */
/* ============================================== */

.pnp-swal-modal {
  font-family: var(--font-body) !important;
  border-radius: var(--radius-base) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  padding: 1.75rem 1.5rem !important;
}

.pnp-swal-modal .swal2-title {
  font-family: var(--font-body) !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  padding: 0 0 0.5rem 0 !important;
}

.pnp-swal-modal .swal2-html-container {
  font-family: var(--font-body) !important;
  font-size: 0.93rem !important;
  color: var(--text-body) !important;
  line-height: 1.55 !important;
  margin: 0.5rem 0 1.25rem 0 !important;
}

.pnp-swal-modal.pnp-danger-modal .swal2-title {
  color: var(--danger) !important;
}

.pnp-swal-actions {
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  margin-top: 1rem !important;
}

.pnp-swal-actions .btn {
  min-width: 110px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger-action {
  background: var(--danger) !important;
  border: 1px solid var(--danger) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
  transition: all 180ms ease !important;
}

.btn-danger-action:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  transform: translateY(-1px);
}

.pnp-swal-toast {
  font-family: var(--font-body) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18) !important;
  border: 1px solid var(--border-color) !important;
  padding: 10px 14px !important;
}

.pnp-swal-toast .swal2-title {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  margin: 0 !important;
}

.swal2-timer-progress-bar {
  background: var(--primary) !important;
}

