/* ==========================================================================
   HIGH-CONTRAST LIGHT MODE OVERRIDES FOR NEW COMPONENTS
   ========================================================================== */

[data-theme="light"] .countdown-widget {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .countdown-icon {
  background: #e0f2fe !important;
  color: #0284c7 !important;
}

[data-theme="light"] .countdown-titles h3 {
  color: #0f172a !important;
}

[data-theme="light"] .countdown-titles p {
  color: #475569 !important;
}

[data-theme="light"] .countdown-titles p strong {
  color: #0369a1 !important;
}

[data-theme="light"] .clock-unit {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .clock-val {
  color: #0284c7 !important;
}

[data-theme="light"] .clock-lbl {
  color: #64748b !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-study-plan {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
}
[data-theme="light"] .btn-study-plan:hover {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

[data-theme="light"] .daily5-banner {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
}

[data-theme="light"] .daily5-text h4 {
  color: #166534 !important;
}

[data-theme="light"] .daily5-text p {
  color: #334155 !important;
}

[data-theme="light"] .mastery-map-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .mastery-map-header h3 {
  color: #0f172a !important;
}

[data-theme="light"] .mastery-legend {
  color: #475569 !important;
}

[data-theme="light"] .legend-item {
  color: #475569 !important;
}

[data-theme="light"] .mastery-tile {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
[data-theme="light"] .mastery-tile:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .mastery-tile-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .mastery-tile-bar {
  background: #e2e8f0 !important;
}

[data-theme="light"] .q-utility-row {
  border-top: 1px solid #e2e8f0 !important;
  padding-top: 0.75rem !important;
}

[data-theme="light"] .btn-q-util {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
[data-theme="light"] .btn-q-util:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .q-note-drawer {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .q-note-textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

/* ==========================================================================
   COMPREHENSIVE HIGH-CONTRAST LIGHT MODE COLOR OVERRIDES
   ========================================================================== */

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-accent: #e2e8f0;
  
  --text-primary: #0f172a;       /* Very dark slate - maximum contrast */
  --text-secondary: #1e293b;     /* Slate-800 */
  --text-muted: #334155;         /* Slate-700 */
  --text-inverse: #ffffff;
  
  --border-light: #cbd5e1;       /* Slate-300 */
  --border-medium: #94a3b8;      /* Slate-400 */
}

[data-theme="light"] body {
  color: #0f172a !important;
  background-color: #f8fafc !important;
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3, 
[data-theme="light"] h4, 
[data-theme="light"] h5, 
[data-theme="light"] strong {
  color: #0f172a !important;
}

[data-theme="light"] p {
  color: #1e293b !important;
}

/* Hero Section */
[data-theme="light"] .hero-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] #setup-hero-title {
  color: #0f172a !important;
}

[data-theme="light"] #setup-hero-desc {
  color: #1e293b !important;
  font-weight: 500 !important;
}

[data-theme="light"] .course-selection-hint {
  color: #334155 !important;
  font-weight: 600 !important;
}

/* Course Cards */
[data-theme="light"] .course-card-item {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .course-card-item:hover {
  background: #f8fafc !important;
  border-color: #2563eb !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12) !important;
}

[data-theme="light"] .course-card-item.active {
  background: #eff6ff !important;
  border-color: #2563eb !important;
}

[data-theme="light"] .course-card-name {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .course-count-badge {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .course-topic-chip {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .course-faculty-text {
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .progress-ring-bg {
  stroke: #e2e8f0 !important;
}

[data-theme="light"] .progress-ring-label {
  color: #0f172a !important;
  font-weight: 800 !important;
}

/* Header & Candidate Chip */
[data-theme="light"] .site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .candidate-profile-chip {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .candidate-sub {
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] #exam-meta-candidate {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .timer-container:not(#header-timer) {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

/* Setup Form Fields */
[data-theme="light"] .config-field label {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .config-select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .mode-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .mode-card h4 {
  color: #0f172a !important;
}

[data-theme="light"] .mode-card p {
  color: #1e293b !important;
}

[data-theme="light"] .mode-card.selected {
  background: #f0fdf4 !important;
  border-color: #10b981 !important;
}

/* Exam Screen */
[data-theme="light"] .question-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .question-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .option-card {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .option-card:hover {
  background: #ffffff !important;
  border-color: #2563eb !important;
}

[data-theme="light"] .option-card.selected {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1e3a8a !important;
}

[data-theme="light"] .option-letter {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .badge-topic {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .badge-qnum {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .palette-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .palette-header h3 {
  color: #0f172a !important;
}

[data-theme="light"] .palette-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .palette-stat-item {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .palette-stat-item .stat-label {
  color: #334155 !important;
}

/* Results Screen */
[data-theme="light"] .score-hero-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .score-primary-info h2 {
  color: #0f172a !important;
}

[data-theme="light"] #score-remark {
  color: #1e293b !important;
}

[data-theme="light"] .quick-stat-row span {
  color: #334155 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .quick-stat-row strong {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .review-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .review-question-text {
  color: #0f172a !important;
  font-weight: 600 !important;
}

[data-theme="light"] .review-option {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .solution-box {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .solution-box h5 {
  color: #0284c7 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .solution-box p {
  color: #0f172a !important;
}

/* Theory Screen */
[data-theme="light"] .theory-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .theory-prompt-box h3 {
  color: #0f172a !important;
}

[data-theme="light"] .theory-sample-text {
  color: #0f172a !important;
}
