/* ============================================================
   CINDER Design System — Shadcn-style, sem React
   Paleta: #A31A00 (carmim) · #EBB40E (dourado) · Tailwind base
   ============================================================ */

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

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --background:        #FAFAFA;
  --foreground:        #1C1C1C;
  --card:              #FFFFFF;
  --card-foreground:   #1C1C1C;
  --border:            #E2E2E2;
  --input:             #FFFFFF;
  --input-border:      #D1D1D1;

  --primary:           #A31A00;
  --primary-hover:     #8B1600;
  --primary-light:     #FFF0EE;
  --primary-foreground:#FFFFFF;

  --secondary:         #EBB40E;
  --secondary-hover:   #D4A00C;
  --secondary-light:   #FFFBEA;
  --secondary-foreground: #1C1C1C;

  --muted:             #F5F5F5;
  --muted-foreground:  #737373;

  --accent:            #FFF7ED;
  --accent-foreground: #A31A00;

  --destructive:       #DC2626;
  --destructive-hover: #B91C1C;
  --success:           #16A34A;
  --warning:           #D97706;
  --info:              #2563EB;

  --ring:              #A31A00;
  --radius:            0.5rem;
  --radius-sm:         0.375rem;
  --radius-lg:         0.75rem;
  --radius-xl:         1rem;

  --shadow-sm:         0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:            0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md:         0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:         0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.25rem;font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem;   font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 600; }

.text-xs    { font-size: 0.75rem;  }
.text-sm    { font-size: 0.875rem; }
.text-base  { font-size: 1rem;     }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem;  }
.text-2xl   { font-size: 1.5rem;   }
.text-3xl   { font-size: 1.875rem; }

.text-muted   { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--destructive); }

.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }

/* ── Layout helpers ───────────────────────────────────────── */
.container    { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }

.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem;  }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem;    }
.gap-6  { gap: 1.5rem;  }
.gap-8  { gap: 2rem;    }
.flex-wrap    { flex-wrap: wrap; }
.flex-1       { flex: 1; }

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

.w-full   { width: 100%; }
.h-full   { height: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }

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

.m-0  { margin: 0; }
.mt-1 { margin-top: 0.25rem;  }
.mt-2 { margin-top: 0.5rem;   }
.mt-4 { margin-top: 1rem;     }
.mt-6 { margin-top: 1.5rem;   }
.mt-8 { margin-top: 2rem;     }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem;   }
.mb-6 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem;  }
.ml-auto { margin-left: auto; }

.rounded    { border-radius: var(--radius);    }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

.border   { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-primary { border-color: var(--primary); }

.shadow    { box-shadow: var(--shadow);    }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.hidden  { display: none; }
.block   { display: block; }
.inline  { display: inline; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed;    }
.sticky   { position: sticky;   }
.top-0    { top: 0; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.z-10     { z-index: 10;  }
.z-20     { z-index: 20;  }
.z-50     { z-index: 50;  }
.z-100    { z-index: 100; }

.text-center { text-align: center; }
.text-right  { text-align: right;  }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cursor-pointer { cursor: pointer; }
.select-none    { user-select: none; }
.opacity-0      { opacity: 0; }
.opacity-50     { opacity: 0.5; }
.opacity-100    { opacity: 1; }
.pointer-events-none { pointer-events: none; }

.transition { transition: all 150ms ease; }
.transition-colors { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.card-header h2, .card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}
.card-header p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
.card-body  { padding: 1.5rem; }
.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
}

/* ── Button ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1.5;
}
.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}
.btn-secondary:hover { background: var(--secondary-hover); }

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

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--muted); }

.btn-destructive {
  background: var(--destructive);
  color: #fff;
  border-color: var(--destructive);
}
.btn-destructive:hover { background: var(--destructive-hover); }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.75rem 1.5rem;   font-size: 1rem; }
.btn-xl { padding: 0.875rem 2rem;    font-size: 1.0625rem; font-weight: 600; }
.btn-icon { padding: 0.5rem; width: 2.25rem; height: 2.25rem; }

/* ── Input / Form ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}
.form-label .required { color: var(--destructive); margin-left: 2px; }

.cinder-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--foreground);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  outline: none;
}
.cinder-input::placeholder { color: var(--muted-foreground); }
.cinder-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(163 26 0 / 0.12);
}
.cinder-input:disabled {
  background: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
}
.cinder-input.error  { border-color: var(--destructive); }
.cinder-input.success{ border-color: var(--success); }

.form-hint  { font-size: 0.8125rem; color: var(--muted-foreground); }
.form-error { font-size: 0.8125rem; color: var(--destructive);      }

select.cinder-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

textarea.cinder-input { resize: vertical; min-height: 100px; }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid transparent;
}
.badge-primary     { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.badge-secondary   { background: var(--secondary-light); color: #92610A; border-color: var(--secondary); }
.badge-success     { background: #DCFCE7; color: #16A34A; border-color: #86EFAC; }
.badge-warning     { background: #FEF3C7; color: #D97706; border-color: #FCD34D; }
.badge-danger      { background: #FEE2E2; color: #DC2626; border-color: #FCA5A5; }
.badge-muted       { background: var(--muted); color: var(--muted-foreground); }
.badge-outline     { background: transparent; border-color: var(--border); color: var(--foreground); }

/* ── Alert ────────────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9rem;
}
.alert-icon  { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-top: 1px; }
.alert-body  { flex: 1; }
.alert-title { font-weight: 600; margin-bottom: 0.125rem; }

.alert-info        { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.alert-success     { background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.alert-warning     { background: #FFFBEB; border-color: #FDE68A; color: #B45309; }
.alert-destructive { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }

/* ── Table ────────────────────────────────────────────────── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.cinder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.cinder-table thead {
  background: var(--muted);
}
.cinder-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cinder-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 100ms;
}
.cinder-table tbody tr:last-child { border-bottom: none; }
.cinder-table tbody tr:hover { background: var(--muted); }
.cinder-table tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
}

/* ── Dialog / Modal ───────────────────────────────────────── */
.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.dialog {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: dialog-in 200ms ease;
}
.dialog-lg  { max-width: 640px; }
.dialog-xl  { max-width: 800px; }
.dialog-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.dialog-header h3 { font-size: 1.125rem; font-weight: 600; }
.dialog-header p  { color: var(--muted-foreground); font-size: 0.875rem; margin-top: 0.25rem; }
.dialog-body   { padding: 1.5rem; }
.dialog-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.96) translateY(4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

/* ── Toast ────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 420px;
  animation: toast-in 250ms ease, toast-out 250ms ease forwards;
  animation-delay: 0s, 3.75s;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--destructive); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info    { border-left: 4px solid var(--info); }

@keyframes toast-in  { from { opacity:0; transform: translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes toast-out { from { opacity:1; transform: translateX(0);    } to { opacity:0; transform:translateX(100%); } }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 1s linear;
}
.progress-bar-fill.warning { background: var(--warning); }
.progress-bar-fill.danger  { background: var(--destructive); }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}
.sidebar-logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.2;
}
.sidebar-logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
}
.sidebar-nav { padding: 1rem 0.75rem; flex: 1; }
.sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background 120ms, color 120ms;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--muted); color: var(--foreground); }
.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.sidebar-link svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Page header ──────────────────────────────────────────── */
.page-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.page-header h1 { font-size: 1.375rem; font-weight: 700; }
.page-header p  { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.125rem; }

/* ── Stat Card ────────────────────────────────────────────── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-card-label { font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground); }
.stat-card-value { font-size: 2rem; font-weight: 700; color: var(--foreground); line-height: 1.2; margin-top: 0.25rem; }
.stat-card-meta  { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.stat-card-icon  {
  width: 2.5rem; height: 2.5rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}

/* ── Exam UI ──────────────────────────────────────────────── */
.exam-layout {
  display: flex;
  min-height: 100vh;
}
.exam-sidebar {
  width: 220px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 1rem;
  flex-shrink: 0;
  position: sticky;
  top: 56px;           /* abaixo do header fixo */
  height: calc(100vh - 56px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.exam-main {
  flex: 1;
  padding: 2rem;
  max-width: 800px;
}
.question-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms;
}
.question-nav-btn:hover   { background: var(--muted); color: var(--foreground); }
.question-nav-btn.answered{ background: var(--primary); color: white; border-color: var(--primary); }
.question-nav-btn.current { border-color: var(--secondary); box-shadow: 0 0 0 2px var(--secondary); }

.choice-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 120ms;
  background: var(--card);
}
.choice-option:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.choice-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgb(163 26 0 / 0.15);
}
.choice-label {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 120ms;
}
.choice-option:hover   .choice-label { border-color: var(--primary); color: var(--primary); }
.choice-option.selected .choice-label { border-color: var(--primary); background: var(--primary); color: white; }

/* ── Timer ────────────────────────────────────────────────── */
.timer-display {
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  letter-spacing: -0.02em;
}
.timer-display.warning { color: var(--warning); }
.timer-display.danger  { color: var(--destructive); animation: pulse-text 1s ease infinite; }

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ── Login page ───────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A0800 0%, #A31A00 50%, #3D0800 100%);
  padding: 2rem;
}
.login-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgb(0 0 0 / 0.35);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}
.login-header {
  background: var(--primary);
  padding: 2.5rem 2rem;
  text-align: center;
}
.login-logo {
  width: 5rem;
  height: 5rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  letter-spacing: -2px;
  border: 2px solid rgba(235,180,14,0.5);
}
.login-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}
.login-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.login-body { padding: 2rem; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar   { display: none; }
  .container { padding: 0 1rem; }
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .exam-sidebar { display: none; }
  .exam-main { padding: 1rem; }
  h1 { font-size: 1.5rem; }
  .stat-card-value { font-size: 1.5rem; }
}

@media (max-width: 640px) {
  .login-card { border-radius: var(--radius); }
  .btn-xl     { width: 100%; }
}

/* ── Utility overrides ────────────────────────────────────── */
.bg-card    { background: var(--card); }
.bg-muted   { background: var(--muted); }
.bg-primary { background: var(--primary); }
.bg-success { background: #16A34A; }
.bg-warning { background: var(--warning); }
.bg-danger  { background: var(--destructive); }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

a { color: var(--primary); text-decoration: none; transition: opacity 120ms; }
a:hover { opacity: 0.8; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--muted); }
::-webkit-scrollbar-thumb { background: #CBCBCB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ABABAB; }
