/* ══════════════════════════════════════════════════════════════
   NJU Mock Test — Light Theme Stylesheet
   Independent light theme overrides for the Mock Test app
   ══════════════════════════════════════════════════════════════ */

.light-theme {
  --bg-primary: #f4f6fb;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --accent: #6d28d9;
  --accent-glow: rgba(109, 40, 217, 0.08);
  --accent-light: #8b5cf6;
  --green: #22c55e;
  --green-glow: rgba(34, 197, 94, 0.08);
  --red: #ef4444;
  --red-glow: rgba(239, 68, 68, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border: #e2e8f0;
  
  /* Component styles */
  --bg-option: #f8fafc;
  --border-option: #e2e8f0;
  --bg-option-hover: rgba(109, 40, 217, 0.04);
  --bg-key: #e2e8f0;
  --bg-badge: #e2e8f0;
  --bg-spinner: rgba(0, 0, 0, 0.05);
}

/* ── Body & Background ────────────────────────────────────────── */
.light-theme body {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(109, 40, 217, 0.05), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(34, 197, 94, 0.04), transparent);
}

/* ── Badges, Features & Stats ─────────────────────────────────── */
.light-theme .time-spent-badge {
  background: rgba(109, 40, 217, 0.06);
  border-color: rgba(109, 40, 217, 0.18);
}

.light-theme .test-portal-badge {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.28);
  color: #15803d;
}

.light-theme .feature-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ── Explanations & Review ────────────────────────────────────── */
.light-theme .explanation-toggle-btn {
  background: rgba(22, 163, 74, 0.06);
  border-color: rgba(22, 163, 74, 0.2);
}

.light-theme .explanation-toggle-btn:hover {
  background: rgba(22, 163, 74, 0.12);
}

.light-theme .review-explanation {
  background: rgba(22, 163, 74, 0.06);
}

/* ── Quiz Sidebar & Question Palette ──────────────────────────── */
.light-theme .quiz-sidebar {
  background: #f8fafc;
  border: 1px solid var(--border);
  box-shadow: -4px 8px 32px rgba(0, 0, 0, 0.1);
}

.light-theme .sidebar-title {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.light-theme .palette-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

.light-theme .palette-btn:hover {
  background: #cbd5e1;
}

.light-theme .palette-btn.active {
  border-color: #6d28d9;
  background: rgba(109, 40, 217, 0.1);
  color: #6d28d9;
}

.light-theme .palette-btn.review-answered::after {
  border-color: #f8fafc;
}

.light-theme .palette-legend {
  color: var(--text-secondary);
  border-top-color: var(--border);
}

.light-theme .legend-dot.gray {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.light-theme .legend-dot.yellow-green::after {
  border-color: #f8fafc;
}

/* ── Theme Toggle & Header Controls ───────────────────────────── */
html.light-theme .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

html:not(.light-theme) .theme-icon-sun {
  display: none;
}

html.light-theme .theme-icon-moon {
  display: none;
}

.light-theme .header-home-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

.light-theme .profile-dropdown {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.light-theme .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ── Auth Cards & Modals ──────────────────────────────────────── */
.light-theme .login-card,
.light-theme .login-modal {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.light-theme .card-title {
  color: var(--text-primary);
}

.light-theme .card-subtitle {
  color: var(--text-secondary);
}

.light-theme .modal-divider::before,
.light-theme .modal-divider::after {
  background-color: var(--border);
}

.light-theme .form-group label {
  color: var(--text-primary);
}

.light-theme .input-wrapper {
  background-color: #fff;
  border-color: var(--border);
}

.light-theme .input-wrapper input {
  color: var(--text-primary);
}

.light-theme .input-prefix {
  background-color: rgba(0, 0, 0, 0.05);
  border-right-color: var(--border);
  color: var(--text-secondary);
}

.light-theme .password-toggle:hover {
  color: var(--text-primary);
}

.light-theme .link-btn {
  color: var(--accent);
}

.light-theme .btn-ghost-close {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

.light-theme .btn-ghost-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
}

/* ── Toast Notifications ──────────────────────────────────────── */
.light-theme .custom-toast {
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.light-theme .custom-toast.toast-error {
  background: rgba(255, 245, 245, 0.98);
}

.light-theme .custom-toast.toast-warning {
  background: rgba(255, 251, 240, 0.98);
}

.light-theme .custom-toast.toast-success {
  background: rgba(240, 255, 248, 0.98);
}

.light-theme .custom-toast.toast-info {
  background: rgba(245, 242, 255, 0.98);
}
