/* =========================================
   LIGHT THEME (BLUE MODE ONLY) — SHARED OVERRIDES
   ========================================= */

   html.light-mode {
      --bg-dark: #e6f0f9; 
      --text-light: #0f172a; 
      --text-muted: #64748b;
      --text-blueLight: #0284c7;
  
      --blue: #38bdf8;
      --blue-strong: #86c1ff;
      --gold: #cc9815;
      --goldBright: #c48f0a;
      --green: #0da572;
      --red: #f43f5e;
      --teal: #099b87;
      --amber: #f59e0b;
  
      --glass-bg: #dbeeffad;
      --glass-border: rgba(0, 0, 0, 0.1);
      --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
      --modal-bg: rgba(221, 230, 255, 0.95);
      
      background-color: var(--bg-dark); 
  }
  
  html.light-mode body { background: var(--bg-dark); color: var(--text-light); }
  html.light-mode body.home-mode { background: transparent !important; }
  html.light-mode body.home-mode::before { background-image: linear-gradient(-45deg, #e0f2fe, #d8ecff, #cfe6ff, #c5e5ff); background-size: 400% 400%; animation: gradient var(--bg-duration, 15s) ease infinite var(--bg-play-state); }
  html.light-mode body.quiz-mode { background-image: none !important; background-color: var(--bg-dark) !important; }
  html.light-mode body.quiz-mode::before, html.light-mode body.quiz-mode::after { display: none !important; animation: none !important; background: none !important; }
  
  @media (min-width: 769px) {
      html.light-mode body.quiz-mode::before { background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 40%) !important; }
      html.light-mode body.quiz-mode::after { background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 40%) !important; }
  }
  
  html.light-mode ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.03); border-left: 1px solid rgba(0, 0, 0, 0.05); }
  html.light-mode ::-webkit-scrollbar-thumb { background-color: rgba(2, 132, 199, 0.4); border: 3px solid transparent; background-clip: content-box; }
  html.light-mode ::-webkit-scrollbar-thumb:hover { background-color: rgba(2, 132, 199, 0.7); }
  
  html.light-mode strong, html.light-mode b { color: #0369a1; }
  html.light-mode em, html.light-mode i, html.light-mode .modern-examples li { color: #808584; font-weight: 600; }
  html.light-mode .modern-examples li::before { color: #363f3e; }
  html.light-mode u { color: #b45309; font-weight: 600; }
  html.light-mode input::placeholder { color: rgba(15, 23, 42, 0.4); }
  
  /* Navbar Overrides */
  html.light-mode .navbar { background: rgb(173 214 249); border-bottom: 1px solid var(--glass-border); color: var(--text-light); }
  html.light-mode .nav-brand { color: #0369a1; }
  html.light-mode .nav-link { color: #334155; }
  html.light-mode .nav-link:hover { background: rgba(2, 132, 199, 0.1); color: #1a4367; }
  html.light-mode .nav-link.active { background: rgba(2, 132, 199, 0.1); color: #1a4367; }
  html.light-mode .nav-extension { background: rgb(210 231 249 / 70%); border-bottom: 1px solid rgba(2, 132, 199, 0.2); box-shadow: 0px 10px 15px rgb(19 49 81 / 9%); }
  html.light-mode .nav-extension h2 { color: #0f172a; }
  html.light-mode .nav-extension .back-link { color: #334155; }
  html.light-mode .nav-extension .back-link:hover { color: #0284c7; }
  html.light-mode .mobile-toggle { color: #0f172a; }
  html.light-mode .nav-menu.mobile-open { background: rgba(240, 248, 255, 1); border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
  html.light-mode .dropdown-menu { background: rgb(202 229 253); border: 1px solid rgba(0,0,0,0.1); color: #0f172a; }
  html.light-mode .dd-item { color: #334155; }
  html.light-mode .dd-item:hover { background: rgb(181, 217, 255); color: #0f172a; }
  html.light-mode .profile-main-text { color: #0f172a; }
  html.light-mode .profile-sub-text { color: #0284c7; }
  html.light-mode .brand-logo {
    filter: none;
}
  
  /* Modals, Cards & Inputs */
  html.light-mode .glass-card, html.light-mode .main-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-shadow); text-align: center; color: rgb(12, 7, 27); }
  html.light-mode .glass-modal h3 { color: #0369a1; }
  html.light-mode .glass-modal p { color: #334155; }
  html.light-mode .glass-textarea { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.1); color: #0f172a; }
  html.light-mode .glass-toast { background: rgba(255, 255, 255, 0.95); color: #0f172a; border: 1px solid #0ea5e9; box-shadow: 0 10px 40px rgba(14, 165, 233, 0.25); }
  html.light-mode input, html.light-mode .custom-select, html.light-mode .glass-select { background: rgb(174 203 229 / 16%); border-color: rgba(0, 0, 0, 0.1); color: #071433dc; }
  html.light-mode input:focus, html.light-mode .custom-select:focus, html.light-mode .glass-select:focus { background: rgb(52 100 151 / 8%); border-color: #0285c75d; }
  html.light-mode .glass-options-list { background: rgb(214 233 249 / 95%); border-color: rgba(0, 0, 0, 0.1); }
  html.light-mode .glass-option { color: #334155; }
  html.light-mode .glass-option:hover { background: rgba(2, 132, 199, 0.1); color: #0284c7; }
  
  /* Buttons */
  html.light-mode .badge { background: rgba(2, 132, 199, 0.1); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.2); }
  html.light-mode .start-btn { background: rgba(2, 132, 199, 0.15); border-color: rgba(2, 132, 199, 0.3); color: #00405f; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
  html.light-mode .start-btn:hover { background: #3c5f71eb; color: #ffffff; }
  html.light-mode .start-btn:active { box-shadow: 0 0 5px rgba(56, 189, 248, 0.2); }
  html.light-mode .btn-secondary { background: rgb(186 214 231); border-color: rgb(95 135 163 / 46%); color: #334155; }
  html.light-mode .btn-secondary:hover { background: rgba(196, 232, 255, 0.829); border-color: rgba(0, 0, 0, 0.2); color: #0f172a; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
  html.light-mode .btn-submit {
    background: rgb(231 186 186 / 56%);
    border-color: rgb(163 95 95 / 46%);
    color: #a50000;
}
html.light-mode .btn-submit:hover {
    background: rgba(221, 144, 144, 0.705);
    border-color: rgba(151, 73, 73, 0.637);
    color: #8b0303;
}
  html.light-mode .submit-exam-btn { background: rgb(186 214 231); border-color: rgb(95 135 163 / 46%); color: #334155; }
  html.light-mode .submit-exam-btn:hover { background: rgba(196, 232, 255, 0.829); border-color: rgba(0, 0, 0, 0.2); color: #0f172a; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
  html.light-mode .nav-control-btn { background: rgb(211 234 255 / 42%); border-color: rgb(0 0 0 / 10%); color: #334155; box-shadow: inset 0px 0px 10px #2a5071; }
  html.light-mode .nav-control-btn:hover { background: rgb(220 236 251); border-color: rgba(0, 0, 0, 0.2); color: #ebf1ff; box-shadow: inset 0px 0px 20px 11px #0a2842; }
  html.light-mode .btn-cancel {
    background: rgb(144 219 63 / 10%);
    border-color: rgb(16 69 1 / 30%);
    color: #2c5500;
}
html.light-mode .btn-cancel:hover {
    background: rgba(155, 240, 65, 0.158);
    border-color: rgba(16, 69, 1, 0.486);
    color: #284707;
}
  
  html.light-mode .btn-primary { background: rgba(255, 255, 255, 0.05); border: 1px solid rgb(83 106 129 / 10%); color: #324467; padding: 12px 25px; border-radius: 30px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; text-decoration: none; display: inline-block; box-shadow: 0 0 7px 1px rgba(15, 26, 75, 0.1); }
  html.light-mode .btn-primary:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); box-shadow: 0 0 4px 0px rgba(15, 26, 75, 0.2); border-color: rgba(48, 64, 100, 0.4); }
  html.light-mode .btn-next, html.light-mode .btn-previous { background: rgba(255, 255, 255, 0.05); border: 1px solid rgb(83 106 129 / 10%); color: #324467; padding: 12px 25px; border-radius: 30px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; text-decoration: none; display: inline-block; box-shadow: 0 0 7px 1px rgba(15, 26, 75, 0.1); }
  html.light-mode .btn-next:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(5px); box-shadow: 0 0 4px 0px rgba(15, 26, 75, 0.2); border-color: rgba(48, 64, 100, 0.4); }
  html.light-mode .btn-previous:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(-5px); box-shadow: 0 0 4px 0px rgba(15, 26, 75, 0.2); border-color: rgba(48, 64, 100, 0.4); }
  
  /* Icons */
  html.light-mode .focus-btn { color: #64748b; }
  html.light-mode .focus-btn:hover, html.light-mode .focus-active .focus-btn { color: #0284c7; }
  html.light-mode .audio-btn { color: #64748b; }
  html.light-mode .audio-btn:hover { color: #0284c7; }
  html.light-mode .report-btn { color: #64748b; }
  html.light-mode .report-btn:hover { color: #e11d48; }
  html.light-mode .fav-btn.active svg { fill: #0284c7; stroke: #0284c7; }
  html.light-mode .audio-btn.save-btn { color: #64748b; }
  html.light-mode .audio-btn.save-btn:hover { color: #d97706; }
  html.light-mode .save-btn.active svg { fill: #d97706; stroke: #d97706; }
  
  /* Native Date Input Fix */
  html.light-mode input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.5); cursor: pointer; }
  
  /* Modal specific overrides */
  html.light-mode .modal-role-text { color: #0284c7; }
  html.light-mode .glass-modal-danger { border-color: #e11d48; }
  html.light-mode .danger-title { color: #e11d48; }
  html.light-mode .del-user-name-text { color: #0f172a; font-weight: 700; }
  html.light-mode .danger-warning-box { background: rgba(225, 29, 72, 0.05); border: 1px solid rgba(225, 29, 72, 0.2); }
  html.light-mode .danger-warning-text { color: #be123c; }
  html.light-mode .modal-actions .btn-danger { background: #e11d48; border-color: #be123c; }
  html.light-mode .modal-actions .btn-danger:hover { background: #be123c; box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3); }


  /* =========================================
   CRITICAL RESTORATIONS (LIGHT THEME)
   ========================================= */
html.light-mode .text-green { color: #059669 !important; }
html.light-mode .text-red { color: #e11d48 !important; }
html.light-mode .text-faded { color: #64748b !important; }

html.light-mode .glass-option-btn { background: rgb(215 234 251 / 23%); border: 1px solid rgba(0, 0, 0, 0.1); color: #1e293b; }
html.light-mode .glass-option-btn::before { color: #64748b; }
html.light-mode .glass-option-btn:hover { background: rgb(65 176 233 / 12%); border-color: rgb(2 132 199 / 53%); }
html.light-mode .glass-option-btn:hover::before, html.light-mode .glass-option-btn.selected::before { color: #0284c7; }
html.light-mode .glass-option-btn.correct { background: rgba(16, 185, 129, 0.1) !important; border-color: #10b981 !important; color: #065f46 !important; }
html.light-mode .glass-option-btn.wrong { background: rgba(244, 63, 94, 0.1) !important; border-color: #f43f5e !important; color: #9f1239 !important; }
html.light-mode .glass-option-btn.selected { background: rgba(2, 132, 199, 0.1); border-color: #0284c7; color: #0369a1; box-shadow: 0 0 10px rgba(2, 132, 199, 0.2); }
html.light-mode .explanation-box { background: rgba(224, 242, 254, 0.6); border: 1px solid rgba(186, 230, 253, 0.8); border-left: 4px solid #0284c7; color: #0f172a; box-shadow: 4px 5px 10px rgba(2, 132, 199, 0.1); }
html.light-mode .exp-header { color: #0369a1; }
html.light-mode .exp-content { color: #1e293b; }
html.light-mode .exp-content li::before { color: #0284c7; }

html.light-mode .letter-link { background: rgb(184 220 255 / 21%); color: #334155; border-color: rgb(71 85 99 / 12%); }
html.light-mode .letter-link:hover { background: rgb(239, 249, 255, 0.55); color: #0284c7; border-color: rgba(2, 132, 199, 0.3); box-shadow: 2px -2px 8px rgb(2 132 199 / 31%); transform: translateY(-5px); }

html.light-mode .letter-link.active { background: rgb(239, 249, 255, 0.55); color: #0284c7; border-color: rgba(2, 132, 199, 0.3); box-shadow: 2px -2px 8px rgb(2 132 199 / 31%); transform: none }

html.light-mode .mock-card { background: rgb(186 214 239 / 34%); border: 1px solid rgba(0,0,0,0.1); border-left: 4px solid #a78bfa; }

html.light-mode .profile-card-large { background: rgb(224 241 255); border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
html.light-mode .p-col-left { background: rgb(47 62 75); border-color: rgba(0,0,0,0.1); }
html.light-mode .p-col-mid { border-color: rgba(0,0,0,0.1); }
html.light-mode .p-divider { background: rgba(0,0,0,0.1); }
html.light-mode .p-label { color: #64748b; }
html.light-mode .p-val { color: #0f172a; }
html.light-mode .btn-glassy-profile { background: rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.1); color: #0f172a; }
html.light-mode .btn-glassy-profile:hover { background: rgba(2, 132, 199, 0.1); border-color: #0284c7; color: #0284c7; }
html.light-mode .edit-overlay { background: rgb(224 241 255 / 95%); }
html.light-mode .edit-label { color: #475569; }
html.light-mode .edit-content-wrapper { color: rgb(37, 53, 97); }
html.light-mode .edit-content-wrapper > h2 { color: rgba(32, 36, 43, 0.75); }
html.light-mode .edit-content-wrapper p { color: #666874; }

html.light-mode .glass-table th { color: #334155; }
html.light-mode .glass-table thead { background: rgba(0,0,0,0.05); }

/* Keyboard Shortcuts Fix */
html.light-mode kbd { background: #cbd5e1; color: #0f172a; border-color: #94a3b8; box-shadow: 0 4px 0 #94a3b8, 0 5px 10px rgba(0,0,0,0.1); }

/* =========================================
   MISSING RESTORATIONS: DASHBOARD & MODALS
   ========================================= */
/* Fixes the invisible "Submit Exam?" text in the modal */
html.light-mode {
    --pink: #e11d48;
}

/* Restores the missing dark text on the Admin Dashboard */
html.light-mode .auc-card { background: rgba(226, 241, 255, 0.7); border: 1px solid rgba(34, 155, 255, 0.44); color: #0f172a; }
html.light-mode .auc-name { color: #0f172a; }
html.light-mode .auc-email { color: #64748b; }
html.light-mode .auc-meta { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
html.light-mode .auc-date { color: #334155; }
html.light-mode .auc-dropdown { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #334155; }
html.light-mode .auc-delete-btn { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); color: #475569; }
html.light-mode .auc-delete-btn:hover { background: rgba(244, 63, 94, 0.1); border-color: #f43f5e; color: #e11d48; }
html.light-mode .header-card { background: rgba(232, 244, 255, 0.56); border: 1px solid rgba(46, 108, 159, 0.39); color: #0f172a; }


/* New Modifications */

html.light-mode .guest-auth-btns .nav-link {
	border-radius: 20px;
	padding: 8px 20px;
	font-size: 0.95rem;
	border: 1px solid rgba(11, 40, 78, 0.2);
	background: rgba(255,255,255,0.05);
	backdrop-filter: blur(5px);
}
/* --- Light Mode Enterprise Shimmer --- */
html.light-mode .guest-auth-btns .btn-signup {
    color: #004c9e;
    background: #0d47910f;
    border-color: rgba(0, 76, 158, 0.2);
    font-weight: 700;
}

/* Sweeping light effect adapted for Light Mode */
html.light-mode .guest-auth-btns .btn-signup::before {
    background: linear-gradient(90deg, transparent, rgba(0, 76, 158, 0.15), transparent);
}

html.light-mode .guest-auth-btns .btn-signup:hover {
    color: #cbe4ff;
    background: #092953c4;
    border-color: #092953c4;
    box-shadow: 0 4px 15px rgba(9, 41, 83, 0.2);
}

/* =========================================
   AUTH SCREENS LIGHT MODE FIXES (REFINED)
   ========================================= */

/* 1. Links (Sophisticated Bluish-Gray Tint) */
html.light-mode .center-screen .glass-card a {
    color: #4f637b !important; /* Premium bluish-gray */
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

html.light-mode .center-screen .glass-card a:hover {
    color: #0284c7 !important; /* Highlights to theme blue on hover */
}

/* 2. "Remember Me" Text */
html.light-mode .form-checkbox-label {
    color: #334155 !important; /* Dark bluish-gray */
    font-weight: 500;
}

/* 3. Checkbox Border & Background */
html.light-mode .form-checkbox-custom {
    border: 2px solid rgba(51, 65, 85, 0.3) !important;
    background: rgba(51, 65, 85, 0.05) !important;
}

/* Checkbox Hover State */
html.light-mode .form-checkbox-label:hover .form-checkbox-custom {
    border-color: rgba(51, 65, 85, 0.6) !important;
    background: rgba(51, 65, 85, 0.1) !important;
}

/* Checkbox Checked State */
html.light-mode .form-checkbox-input:checked + .form-checkbox-custom {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

/* Password Eye Icon */
html.light-mode .password-toggle-btn {
    color: #64748b !important;
}

html.light-mode .password-toggle-btn:hover {
    color: #0284c7 !important;
}