/* ============================================================
   LearnLine – Custom CSS
   Mobile-First | Notebook | Warm Paper Theme
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --paper:        #F5F0E8;
  --paper-dark:   #E8E0D0;
  --paper-lines:  #3B8CFF;
  --primary:      #0056B3;
  --accent:       #3B8CFF;
  --margin-line:  #FF9999;
  --text-ink:     #1a1a2e;
  --shadow:       0 2px 20px rgba(0,0,0,0.08);
  --radius:       16px;
  --navbar-bg:    linear-gradient(135deg, #0056B3 0%, #003d82 100%);
  --line-height:  32px;
  --line-gap:     32px;
}

.dark-mode {
  --paper:        #1e1e2e;
  --paper-dark:   #2a2a3e;
  --paper-lines:  #2a4a8a;
  --text-ink:     #e8e0d0;
  --navbar-bg:    linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 100%);
}

.sepia-mode {
  --paper:        #f4ecd8;
  --paper-dark:   #ecdfc6;
  --paper-lines:  #a0855b;
  --text-ink:     #3b2a1a;
  --navbar-bg:    linear-gradient(135deg, #6b4c2a 0%, #4a3520 100%);
}

/* ── Base ── */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f0f4f8;
  color: var(--text-ink);
  -webkit-tap-highlight-color: transparent;
}

.dark-mode body, body.dark-mode { background: #0f0f1a; }
.sepia-mode body, body.sepia-mode { background: #e8dcc8; }

/* ── NAVBAR ── */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
}

.nav-link {
  @apply text-white/80 hover:text-white px-3 py-2 rounded-lg text-sm font-medium transition-all duration-200;
}
.nav-link:hover { background: rgba(255,255,255,0.15); }

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255,255,255,0.9);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
}
.mobile-nav-link:hover { background: rgba(255,255,255,0.15); }

.mobile-menu {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Theme button */
.theme-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.theme-btn:hover { background: rgba(255,255,255,0.25); }

/* User avatar */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── CARDS ── */
.card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.dark-mode .card { background: #1e1e2e; color: var(--text-ink); }
.sepia-mode .card { background: #f4ecd8; }

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px; /* touch-friendly */
}
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,86,179,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  touch-action: manipulation;
  min-height: 48px;
}
.btn-secondary:hover { background: var(--primary); color: white; }

.btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 48px;
}

.btn-full { width: 100%; justify-content: center; }

/* ── DIGITAL NOTEBOOK ── */
.notebook-container {
  position: relative;
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--paper-dark);
  overflow: hidden;
  box-shadow:
    2px 3px 8px rgba(0,0,0,0.15),
    inset 0 0 0 1px rgba(0,0,0,0.04);
  /* Subtle page curl */
  background-image:
    repeating-linear-gradient(
      transparent 0px,
      transparent calc(var(--line-gap) - 1px),
      var(--paper-lines) calc(var(--line-gap) - 1px),
      var(--paper-lines) var(--line-gap)
    );
  background-size: 100% var(--line-gap);
  background-position: 0 40px; /* header height offset */
}

/* Red left margin */
.notebook-container::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--margin-line);
  z-index: 1;
  opacity: 0.6;
}

/* Notebook header (subject/date line) */
.notebook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px 60px;
  border-bottom: 2px solid var(--paper-lines);
  height: 40px;
  font-size: 0.75rem;
  color: #888;
  position: relative;
  z-index: 2;
}

/* Spiral rings */
.notebook-rings {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 8px 0;
  gap: 36px;
  z-index: 3;
  pointer-events: none;
}
.notebook-ring {
  width: 24px;
  height: 20px;
  border: 3px solid #b0b0b0;
  border-radius: 50%;
  margin: 0 auto;
  background: rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

/* The writing area */
.notebook-write-area {
  position: relative;
  padding: 8px 16px 16px 60px;
  min-height: calc(var(--line-gap) * 5);
  z-index: 2;
  outline: none;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  line-height: var(--line-gap);
  color: var(--text-ink);
  caret-color: #0056B3;
  resize: none;
  word-wrap: break-word;
  -webkit-user-select: text;
  user-select: text;
}

.notebook-write-area:focus { outline: none; }

.notebook-write-area.two-marks   { min-height: calc(var(--line-gap) * 4  + 16px); }
.notebook-write-area.five-marks  { min-height: calc(var(--line-gap) * 9  + 16px); }

/* Placeholder text */
.notebook-write-area:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-style: italic;
  position: absolute;
  pointer-events: none;
}

/* Voice button inside notebook */
.voice-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 4;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(59,140,255,0.5);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-btn:active { transform: scale(0.9); }
.voice-btn.recording {
  background: #dc3545;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(220,53,69,0); }
}

/* Word count */
.notebook-footer {
  padding: 4px 16px 8px 60px;
  font-size: 0.7rem;
  color: #aaa;
  border-top: 1px solid rgba(59,140,255,0.2);
}

/* ── CIRCULAR TIMER ── */
.timer-circle {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .timer-circle { width: 70px; height: 70px; }
}

.timer-circle svg { transform: rotate(-90deg); }

.timer-circle .timer-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 6;
}

.timer-circle .timer-fg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.5s;
}

.timer-circle .timer-fg.warning { stroke: #f59e0b; }
.timer-circle .timer-fg.danger  { stroke: #ef4444; animation: timerPulse 0.5s infinite alternate; }

@keyframes timerPulse {
  from { opacity: 1; }
  to   { opacity: 0.5; }
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

@media (max-width: 640px) { .timer-text { font-size: 0.85rem; } }

/* ── QUESTION CARD ── */
.question-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dark-mode .question-card { background: #1e1e2e; }
.sepia-mode .question-card { background: #f4ecd8; }

.question-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.marks-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* MCQ Options */
.mcq-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
  min-height: 52px;
  background: white;
}
.dark-mode .mcq-option { background: #2a2a3e; border-color: #3a3a4e; }
.sepia-mode .mcq-option { background: #ecdfc6; border-color: #d4c4a8; }

.mcq-option:hover  { border-color: var(--accent); background: rgba(59,140,255,0.05); }
.mcq-option.selected { border-color: var(--primary); background: rgba(0,86,179,0.08); }
.mcq-option.correct  { border-color: #22c55e; background: rgba(34,197,94,0.1); }
.mcq-option.wrong    { border-color: #ef4444; background: rgba(239,68,68,0.1); }

.mcq-option-key {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: var(--primary);
}
.mcq-option.selected .mcq-option-key { background: var(--primary); color: white; border-color: var(--primary); }

/* ── PROGRESS BAR ── */
.progress-bar-outer {
  background: #e5e7eb;
  border-radius: 8px;
  height: 8px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 8px;
  transition: width 0.5s ease;
}

/* ── RESULT CARDS ── */
.result-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}
.dark-mode .result-card { background: #1e1e2e; }

.result-card .student-side {
  background: var(--paper);
  padding: 1rem 1rem 1rem 1.5rem;
  background-image:
    repeating-linear-gradient(
      transparent 0px,
      transparent 23px,
      rgba(59,140,255,0.25) 23px,
      rgba(59,140,255,0.25) 24px
    );
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  line-height: 24px;
  min-height: 96px;
}

.result-card .model-side {
  background: #f8fafc;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  border-top: 2px dashed #e5e7eb;
}

/* Marks chip */
.marks-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}
.marks-chip.full  { background: #dcfce7; color: #16a34a; }
.marks-chip.partial { background: #fef3c7; color: #d97706; }
.marks-chip.zero  { background: #fee2e2; color: #dc2626; }

/* ── DASHBOARD STAT CARDS ── */
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.dark-mode .stat-card { background: #1e1e2e; }
.sepia-mode .stat-card { background: #f4ecd8; }

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ── HEAT MAP ── */
.heatmap-cell {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  position: relative;
}
.heatmap-cell:hover { transform: scale(1.3); z-index: 10; }
@media (max-width: 640px) { .heatmap-cell { width: 22px; height: 22px; border-radius: 4px; } }

/* ── BADGE DISPLAY ── */
.badge-card {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.badge-card:hover { transform: scale(1.05); }
.badge-icon { font-size: 2.5rem; margin-bottom: 0.25rem; }

/* ── LIVE QUIZ ── */
.quiz-room-code {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.5rem;
  color: var(--primary);
  font-family: 'Courier New', monospace;
}
@media (max-width: 640px) { .quiz-room-code { font-size: 2rem; letter-spacing: 0.3rem; } }

/* ── LOADING SPINNER ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(59,140,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 1rem;
}
.loading-overlay p { color: white; font-size: 1.1rem; font-weight: 500; }

/* ── TOAST NOTIFICATIONS ── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  z-index: 9998;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #16a34a; }
.toast.error   { background: #dc2626; }
.toast.warning { background: #d97706; }

/* ── FLOATING ACTION BUTTON ── */
.fab {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(0,86,179,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  touch-action: manipulation;
  min-height: 52px;
}
.fab:hover  { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,86,179,0.6); }
.fab:active { transform: translateY(0); }

/* ── CONFETTI ── */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -20px;
  border-radius: 2px;
  z-index: 9999;
  pointer-events: none;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ── FORM ELEMENTS ── */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,140,255,0.15);
}
.dark-mode .form-input { background: #2a2a3e; border-color: #3a3a4e; color: var(--text-ink); }
.sepia-mode .form-input { background: #ecdfc6; border-color: #d4c4a8; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
}
.dark-mode .form-label  { color: #d1d5db; }
.sepia-mode .form-label { color: #6b4c2a; }

.form-select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230056B3' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 48px;
}
.form-select:focus { outline: none; border-color: var(--accent); }
.dark-mode .form-select { background-color: #2a2a3e; border-color: #3a3a4e; color: var(--text-ink); }

/* ── GRADE COLORS ── */
.grade-A1, .grade-A2 { color: #16a34a; }
.grade-B1, .grade-B2 { color: #2563eb; }
.grade-C1, .grade-C2 { color: #d97706; }
.grade-D             { color: #9333ea; }
.grade-E             { color: #dc2626; }

/* ── LEADERBOARD ── */
.rank-1 { background: linear-gradient(135deg, #ffd700, #ffaa00); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #b05a1a); }

/* ── STEP INDICATOR ── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 1rem 0;
  -webkit-overflow-scrolling: touch;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 80px;
}
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}
.step.active   .step-dot { border-color: var(--primary); background: var(--primary); color: white; }
.step.complete .step-dot { border-color: #22c55e; background: #22c55e; color: white; }
.step-line {
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 3px;
  background: #e5e7eb;
}
.step.complete .step-line { background: #22c55e; }
.step-label { font-size: 0.7rem; color: #6b7280; font-weight: 500; text-align: center; }

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 640px) {
  .card { padding: 1rem; }
  .btn-primary, .btn-secondary { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
  .notebook-write-area { font-size: 1.1rem; }
  .fab { bottom: 16px; right: 12px; padding: 12px 16px; font-size: 0.9rem; }
}

@media (max-width: 375px) {
  .notebook-container { --line-gap: 28px; }
  .notebook-write-area { font-size: 1rem; line-height: 28px; }
}

/* Prevent horizontal overflow */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Better tap targets */
a, button { min-height: 44px; }

/* ── PAGE TRANSITIONS ── */
.page-enter {
  animation: pageIn 0.3s ease-out forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SKELETON LOADING ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── OFFLINE BANNER ── */
.offline-banner {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: #d97706;
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 40;
  display: none;
}
.offline-banner.show { display: block; }

/* ── DARK MODE OVERRIDES ── */
.dark-mode .bg-gray-50     { background-color: #0f0f1a !important; }
.dark-mode .bg-white       { background-color: #1e1e2e !important; }
.dark-mode .text-gray-900  { color: #f1f5f9 !important; }
.dark-mode .text-gray-800  { color: #e2e8f0 !important; }
.dark-mode .text-gray-700  { color: #cbd5e1 !important; }
.dark-mode .text-gray-600  { color: #94a3b8 !important; }
.dark-mode .text-gray-500  { color: #64748b !important; }
.dark-mode .text-gray-400  { color: #475569 !important; }
.dark-mode .border-gray-200{ border-color: #2a2a3e !important; }
.dark-mode .border-gray-100{ border-color: #1e1e2e !important; }

/* Question text in dark mode */
.dark-mode .question-card p { color: #e2e8f0; }
.dark-mode .question-card .mcq-option span { color: #cbd5e1; }

/* Case passage box in dark mode */
.dark-mode .bg-amber-50    { background-color: #2a2010 !important; }
.dark-mode .border-amber-300{ border-color: #78550a !important; }
.dark-mode .text-amber-700 { color: #fbbf24 !important; }

/* Case sub-question card in dark mode */
.dark-mode .border-amber-200 { border-color: #78550a !important; }

/* ── SEPIA MODE ── */
.sepia-mode .bg-gray-50    { background-color: #e8dcc8 !important; }
.sepia-mode .bg-white      { background-color: #f4ecd8 !important; }
.sepia-mode .text-gray-900 { color: #3b2a1a !important; }

/* Print / PDF styles */
@media print {
  .navbar, .fab, .toast, nav { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
