/**
 * strategiujian - Mitra Evaluasi dan Bank Soal Digital Indonesia
 * Main Stylesheet v2.0
 * Modern, Responsive, Clean Design System
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES (THEMING)
   ========================================================================== */
:root {
  /* Brand Colors */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-hover: #1E40AF;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --accent-light: #FEF3C7;

  /* State & Alert Colors */
  --success: #10B981;
  --success-dark: #059669;
  --success-light: #ECFDF5;
  --danger: #EF4444;
  --danger-dark: #DC2626;
  --danger-light: #FEF2F2;
  --warning: #F59E0B;
  --warning-dark: #D97706;
  --warning-light: #FFFBEB;
  --info: #3B82F6;
  --info-dark: #2563EB;
  --info-light: #EFF6FF;

  /* Neutral & Text Colors */
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-dark: #0F172A;
  --bg-dark-surface: #1E293B;

  /* Border & Dividers */
  --border-color: #E2E8F0;
  --border-color-focus: #93C5FD;
  --border-subtle: #F1F5F9;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* Border Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Dimensions & Spacing */
  --container-max-width: 1200px;
  --navbar-height: 70px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 76px;

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   MODERN CSS RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style-position: inside;
}

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

a:hover {
  color: var(--primary-dark);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-small { font-size: 0.8125rem; }
.text-xs { font-size: 0.75rem; }

/* Text Utilities */
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #FFFFFF !important; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }

/* ==========================================================================
   LAYOUT & GRID UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-fluid {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Flexbox Utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Spacing Helpers */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

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

.btn:disabled, .btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: #E2E8F0;
  color: var(--text-primary);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
}
.btn-accent:hover {
  background-color: var(--accent-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-success {
  background-color: var(--success);
  color: #FFFFFF;
}
.btn-success:hover {
  background-color: var(--success-dark);
  color: #FFFFFF;
}

.btn-danger {
  background-color: var(--danger);
  color: #FFFFFF;
}
.btn-danger:hover {
  background-color: var(--danger-dark);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-muted);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  padding: 0.625rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.card-body {
  padding: 1.5rem;
  flex: 1 1 auto;
}

.card-footer {
  padding: 1rem 1.5rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.form-label-required::after {
  content: ' *';
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:disabled, .form-control[readonly] {
  background-color: var(--bg-tertiary);
  cursor: not-allowed;
  opacity: 0.75;
}

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

.form-select {
  width: 100%;
  padding: 0.625rem 2.25rem 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px 10px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  accent-color: var(--primary);
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-helper {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-feedback {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}
.form-feedback.invalid { color: var(--danger); }
.form-feedback.valid { color: var(--success); }

/* Input group */
.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group .form-control {
  border-radius: var(--radius-sm);
}

.input-group > :not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
}

.input-group > :not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   BADGES & TAGS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-primary { background-color: var(--primary-light); color: var(--primary); }
.badge-secondary { background-color: var(--bg-tertiary); color: var(--text-secondary); }
.badge-success { background-color: var(--success-light); color: var(--success-dark); }
.badge-danger { background-color: var(--danger-light); color: var(--danger-dark); }
.badge-warning { background-color: var(--warning-light); color: var(--warning-dark); }
.badge-info { background-color: var(--info-light); color: var(--info-dark); }

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 1.25rem;
  position: relative;
}

.alert-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.alert-content {
  flex: 1 1 0%;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: currentColor;
  opacity: 0.6;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.25rem;
}
.alert-close:hover { opacity: 1; }

.alert-primary { background-color: var(--primary-light); border-color: #BFDBFE; color: #1E40AF; }
.alert-success { background-color: var(--success-light); border-color: #A7F3D0; color: #065F46; }
.alert-danger { background-color: var(--danger-light); border-color: #FECACA; color: #991B1B; }
.alert-warning { background-color: var(--warning-light); border-color: #FDE68A; color: #92400E; }
.alert-info { background-color: var(--info-light); border-color: #BFDBFE; color: #1E40AF; }

/* ==========================================================================
   TABLES
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th, .table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table-hover tbody tr:hover {
  background-color: var(--bg-tertiary);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(248, 250, 252, 0.6);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.page-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.page-item.disabled .page-link {
  color: var(--text-muted);
  cursor: not-allowed;
  pointer-events: none;
  background-color: var(--bg-secondary);
}

/* ==========================================================================
   PUBLIC NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: all var(--transition);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-toggler {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Mobile Nav Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 1050;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transition: right var(--transition-slow);
}

.mobile-nav.active {
  right: 0;
}

/* ==========================================================================
   DASHBOARD SIDEBAR & LAYOUT
   ========================================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: #FFFFFF;
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow);
}

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

.sidebar-nav {
  flex: 1 1 auto;
  padding: 1.25rem 0.875rem;
  overflow-y: auto;
  list-style: none;
}

.sidebar-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 0.875rem 0.375rem;
  letter-spacing: 0.05em;
}

.sidebar-item {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.6875rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

.sidebar-link:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

.sidebar-link:hover svg {
  color: var(--primary);
}

.sidebar-link.active {
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
}

.sidebar-link.active svg {
  color: #FFFFFF;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
}

.dashboard-main {
  flex: 1 1 auto;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-navbar {
  height: var(--navbar-height);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1010;
}

.dashboard-content {
  flex: 1 1 auto;
  padding: 1.75rem 1.5rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  list-style: none;
}

.breadcrumb-item {
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

/* User Menu & Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 1050;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8125rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color var(--transition);
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.5rem 0;
}

/* ==========================================================================
   STATS CARD COMPONENT
   ========================================================================== */
.stats-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stats-info {
  display: flex;
  flex-direction: column;
}

.stats-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.stats-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stats-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.stats-trend.up { color: var(--success); }
.stats-trend.down { color: var(--danger); }

.stats-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stats-icon.primary { background-color: var(--primary-light); color: var(--primary); }
.stats-icon.accent { background-color: var(--accent-light); color: var(--accent); }
.stats-icon.success { background-color: var(--success-light); color: var(--success); }
.stats-icon.danger { background-color: var(--danger-light); color: var(--danger); }

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */
.progress {
  width: 100%;
  height: 0.625rem;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-bar.success { background-color: var(--success); }
.progress-bar.warning { background-color: var(--warning); }
.progress-bar.danger { background-color: var(--danger); }

/* ==========================================================================
   LOADER & SPINNER
   ========================================================================== */
.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.spinner-white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   MODAL & OVERLAY
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-bounce);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* ==========================================================================
   PUBLIC FOOTER
   ========================================================================== */
.footer {
  background-color: #0F172A;
  color: #94A3B8;
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: auto;
  border-top: 1px solid #1E293B;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #64748B;
}

/* ==========================================================================
   AUTH LAYOUT SPECIFICS
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background-color: var(--bg-primary);
}

.auth-brand-side {
  flex: 1;
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  color: #FFFFFF;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-brand-side::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.auth-brand-side::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -15%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}

.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background-color: var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

/* ==========================================================================
   LANDING PAGE (HERO, STATS, FEATURES, CTA) - NUANSA BIRU & PUTIH
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#2563EB 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  border: 1px solid #BFDBFE;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #2563EB;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0F172A;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.trust-item svg {
  color: #2563EB;
  flex-shrink: 0;
}

/* Hero Mockup UI */
.hero-mockup {
  position: relative;
}

.mockup-browser {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.08);
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.browser-bar {
  background: #F8FAFC;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid #E2E8F0;
}

.browser-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
}

.browser-bar .dot:nth-child(1) { background: #FDA4AF; }
.browser-bar .dot:nth-child(2) { background: #FDE047; }
.browser-bar .dot:nth-child(3) { background: #86EFAC; }

.browser-url {
  margin-left: 0.75rem;
  background: #FFFFFF;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  color: #64748B;
  border: 1px solid #E2E8F0;
  flex: 1;
}

.browser-content {
  padding: 1.5rem;
  background: #FFFFFF;
}

.mock-exam {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.875rem;
}

.mock-title {
  font-weight: 700;
  color: #1E293B;
}

.mock-timer {
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
}

.mock-q-num {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2563EB;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.mock-q-text {
  font-weight: 600;
  color: #0F172A;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.mock-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-option {
  padding: 0.6rem 0.85rem;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #334155;
  background: #F8FAFC;
  transition: all var(--transition);
}

.mock-option.selected {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #1D4ED8;
  font-weight: 600;
}

.mock-nav-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #F1F5F9;
}

.mock-dot {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #E2E8F0;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-dot.done { background: #2563EB; }
.mock-dot.current { background: #F59E0B; }
.mock-more { font-size: 0.75rem; color: #64748B; margin-left: 0.25rem; }

/* Floating Cards on Mockup */
.float-card {
  position: absolute;
  background: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  border: 1px solid #E2E8F0;
}

.float-card-1 {
  bottom: -20px;
  left: -25px;
}

.float-card-2 {
  top: 40px;
  right: -25px;
}

.float-icon {
  font-size: 1.5rem;
}

.float-label {
  font-size: 0.75rem;
  color: #64748B;
  margin: 0;
}

.float-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

/* Stats Section */
.stats-section {
  background: #2563EB;
  color: #FFFFFF;
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}

.stat-label {
  font-size: 0.95rem;
  color: #BFDBFE;
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: #FFFFFF;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #64748B;
  max-width: 650px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(37, 99, 235, 0.12);
  border-color: #BFDBFE;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon-blue   { background: #EFF6FF; color: #2563EB; }
.feature-icon-green  { background: #ECFDF5; color: #10B981; }
.feature-icon-orange { background: #FEF3C7; color: #F59E0B; }
.feature-icon-purple { background: #F3E8FF; color: #9333EA; }
.feature-icon-teal   { background: #F0FDFA; color: #0D9488; }
.feature-icon-red    { background: #FEF2F2; color: #EF4444; }

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #64748B;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: "✓";
  color: #2563EB;
  font-weight: 800;
}

/* How It Works Section */
.how-it-works-section {
  padding: 5rem 0;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 950px;
  margin: 0 auto;
}

.step-item {
  flex: 1;
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid #E2E8F0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #2563EB;
  background: #EFF6FF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: #94A3B8;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: #FFFFFF;
}

.cta-card {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.35);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2,
.home-cta-box h2,
.home-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-content p,
.home-cta-box p,
.home-cta-desc {
  font-size: 1.125rem;
  color: #E2E8F0 !important;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: #FFFFFF;
  color: #2563EB;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-white:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
  .hero-title { font-size: 2.25rem; }
}

@media (max-width: 575.98px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 767.98px) {
  .navbar-nav, .navbar-actions .btn {
    display: none !important;
  }
  .navbar-toggler {
    display: inline-flex !important;
  }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }
  .dashboard-main {
    margin-left: 0;
  }
  .auth-brand-side {
    display: none;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (min-width: 576px) {
  .grid-sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .grid-md-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-md-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
  .grid-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .grid-xl-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   DASHBOARD & SIDEBAR LAYOUT STYLES
   ========================================================================== */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.sidebar {
  width: var(--sidebar-width, 260px);
  min-width: var(--sidebar-width, 260px);
  height: 100vh;
  background: #FFFFFF;
  border-right: 1px solid var(--border-color, #E2E8F0);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 999;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
}

.sidebar-header {
  height: var(--navbar-height, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid #F1F5F9;
}

.sidebar-nav-container, .sidebar-nav {
  flex: 1;
  padding: 1rem 0.85rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #94A3B8);
  padding: 0.75rem 0.75rem 0.35rem 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-md, 10px);
  color: var(--text-secondary, #475569);
  font-size: 0.885rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.sidebar-link:hover {
  background-color: var(--bg-tertiary, #F1F5F9);
  color: var(--text-primary, #0F172A);
}

.sidebar-link.active {
  background: var(--primary-light, #EFF6FF);
  color: var(--primary, #2563EB);
  font-weight: 700;
}

.dashboard-main {
  margin-left: var(--sidebar-width, 260px);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.dashboard-navbar {
  height: var(--navbar-height, 68px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-content {
  flex: 1;
  padding: 2rem 1.75rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  }
  .dashboard-main {
    margin-left: 0;
  }
}

/* ==========================================================================
   PRINT MEDIA STYLES
   ========================================================================== */
@media print {
  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  .navbar, .sidebar, .footer, .btn, .breadcrumb, .no-print {
    display: none !important;
  }
  .dashboard-main {
    margin-left: 0 !important;
  }
  .card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}

/* ==========================================================================
   RICH TEXT QUESTION CONTENT FORMATTING
   ========================================================================== */
.rich-question-content {
  line-height: 1.65;
  word-break: break-word;
}
.rich-question-content p {
  margin: 0 0 0.5rem 0;
}
.rich-question-content p:last-child {
  margin-bottom: 0;
}
.rich-question-content ul, .rich-question-content ol {
  padding-left: 1.6rem;
  margin: 0.4rem 0;
}
.rich-question-content sub {
  vertical-align: sub;
  font-size: 0.75em;
}
.rich-question-content sup {
  vertical-align: super;
  font-size: 0.75em;
}
.rich-question-content u {
  text-decoration: underline;
}
.rich-question-content s {
  text-decoration: line-through;
}

.math-frac {
  display: inline-block;
  vertical-align: -0.38em;
  text-align: center;
  font-size: 0.95em;
  line-height: 1;
  margin: 0 2px;
}
.math-frac-top {
  display: block;
  border-bottom: 1.5px solid currentColor;
  padding: 0 2px;
  line-height: 1.1;
  font-size: 0.85em;
  text-align: center;
}
.math-frac-bottom {
  display: block;
  padding: 0 2px;
  line-height: 1.1;
  font-size: 0.85em;
  text-align: center;
}


