/* HazelTest Theme & Dark Mode Styles */
html {
    scroll-behavior: smooth;
}

html.dark {
    color-scheme: dark;
}

/* Base Body in Dark Mode */
html.dark body {
    background-color: #0b1120 !important;
    color: #f1f5f9 !important;
}

/* Header & Navigation */
html.dark header {
    background-color: rgba(15, 23, 42, 0.95) !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5) !important;
}

html.dark header nav a.text-gray-600,
html.dark header nav a.text-slate-600 {
    color: #cbd5e1 !important;
}

html.dark header nav a.text-gray-600:hover,
html.dark header nav a.text-slate-600:hover {
    color: #60a5fa !important;
}

html.dark #mobile-menu {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
}

html.dark #mobile-menu a {
    color: #cbd5e1 !important;
}

/* Containers & Cards */
html.dark .bg-white {
    background-color: #111c33 !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

html.dark .bg-gray-50, 
html.dark .bg-gray-100,
html.dark .bg-slate-50,
html.dark .bg-slate-100 {
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

/* Question Blocks & Quizzes */
html.dark .question-block,
html.dark .question-container {
    background-color: #16223b !important;
    border-color: #24355a !important;
    color: #f8fafc !important;
}

html.dark .opcion-card,
html.dark .option-card,
html.dark .option-label {
    background-color: #0f172a !important;
    border-color: #24355a !important;
    color: #e2e8f0 !important;
}

html.dark .opcion-card:hover,
html.dark .option-card:hover,
html.dark .option-label:hover {
    background-color: #1e2e4f !important;
    border-color: #3b82f6 !important;
}

/* Checked Option State */
html.dark .opcion-radio:checked + .opcion-card,
html.dark .option-radio:checked + .option-card,
html.dark .option-input:checked + .option-label {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.4) !important;
}

/* Typography Hierarchy in Dark Mode */
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-slate-900,
html.dark .text-slate-800 {
    color: #f8fafc !important;
}

html.dark .text-gray-700,
html.dark .text-slate-700 {
    color: #cbd5e1 !important;
}

html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-slate-600,
html.dark .text-slate-500 {
    color: #94a3b8 !important;
}

html.dark .text-gray-400,
html.dark .text-slate-400 {
    color: #64748b !important;
}

/* Colorful Accents made readable in Dark Mode */
html.dark .text-blue-900,
html.dark .text-blue-800,
html.dark .text-blue-700 {
    color: #93c5fd !important;
}

html.dark .text-indigo-900,
html.dark .text-indigo-800,
html.dark .text-indigo-700 {
    color: #a5b4fc !important;
}

html.dark .text-green-900,
html.dark .text-green-800,
html.dark .text-emerald-900 {
    color: #6ee7b7 !important;
}

/* Badges and Number Icons in Dark Mode */
html.dark .bg-blue-100 {
    background-color: #1e3a8a !important;
    color: #bfdbfe !important;
}

html.dark .bg-indigo-100 {
    background-color: #312e81 !important;
    color: #c7d2fe !important;
}

html.dark .bg-emerald-100 {
    background-color: #064e3b !important;
    color: #a7f3d0 !important;
}

/* Borders */
html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-300,
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-300 {
    border-color: #1e293b !important;
}

/* Sticky Progress Bar */
html.dark #progress-container {
    background-color: #111c33 !important;
    border-color: #1e293b !important;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.4) !important;
}

html.dark #progress-container .bg-slate-100,
html.dark #progress-container .bg-gray-100 {
    background-color: #1e293b !important;
}

html.dark #progress-pct {
    background-color: #1e293b !important;
    border-color: #3b82f6 !important;
    color: #93c5fd !important;
}

/* Notice & Alert Boxes */
html.dark .bg-blue-50,
html.dark .bg-blue-50\/50,
html.dark .bg-blue-50\/40 {
    background-color: #14233d !important;
    border-color: #1e3a8a !important;
    color: #e2e8f0 !important;
}

html.dark .bg-amber-50 {
    background-color: #291e0a !important;
    border-color: #78350f !important;
    color: #fde68a !important;
}
html.dark .text-amber-900,
html.dark .text-amber-800 {
    color: #fef08a !important;
}

html.dark .bg-rose-50 {
    background-color: #2e0f15 !important;
    border-color: #881337 !important;
    color: #fecdd3 !important;
}
html.dark .text-rose-950,
html.dark .text-rose-900,
html.dark .text-rose-800 {
    color: #fecdd3 !important;
}

/* Tables in Dark Mode */
html.dark table thead {
    background-color: #0a0f1d !important;
    color: #f8fafc !important;
}

html.dark table tbody tr {
    background-color: #111c33 !important;
    color: #cbd5e1 !important;
}

html.dark table tbody tr:nth-child(even) {
    background-color: #16223b !important;
}

html.dark table tbody td,
html.dark table thead th {
    border-color: #1e293b !important;
}

/* Accordions & Details */
html.dark details {
    background-color: #16223b !important;
    border-color: #24355a !important;
    color: #f8fafc !important;
}

html.dark details summary {
    color: #f8fafc !important;
}

html.dark details p {
    color: #cbd5e1 !important;
}

/* Inputs, Textareas & Forms */
html.dark input,
html.dark textarea,
html.dark select {
    background-color: #1e293b !important;
    color: #f9fafb !important;
    border-color: #334155 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #94a3b8 !important;
}
