/* ==========================================================================
   ExamLearn User-Facing Site - Comprehensive Dark & Night Mode
   ========================================================================== */

/* Dark Mode Theme Variables */
[data-bs-theme="dark"],
html.dark-theme {
    --dark-bg: #0d1117;
    --dark-2: #161b22;
    --dark-3: #21262d;
    --dark-border: #30363d;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --border: #30363d;
    --bg-light: #161b22;

    /* Current Affairs overrides */
    --ca-dark: #0d1117;
    --ca-text-dark: #f0f6fc;
    --ca-text-muted: #8b949e;
    --ca-border: #30363d;
    --ca-card-border: #30363d;
    --ca-bg-light: #161b22;

    /* Topic Details overrides */
    --tp-primary-light: rgba(var(--t-500-rgb, 99, 102, 241), 0.15);
    --tp-dark: #0d1117;
    --tp-text-dark: #f0f6fc;
    --tp-text-muted: #8b949e;
    --tp-border: #30363d;
    --tp-card-border: #30363d;
    --tp-bg-light: #161b22;

    /* MCQ Result overrides */
    --result-bg: #0d1117;
    --result-card-bg: #161b22;
    --result-border: #30363d;
    --result-text-main: #f0f6fc;
    --result-text-muted: #8b949e;
    --result-success-light: rgba(22, 163, 74, 0.15);
    --result-danger-light: rgba(220, 38, 38, 0.15);
    --result-warning-light: rgba(217, 119, 6, 0.15);
    --result-info-light: rgba(2, 132, 199, 0.15);

    color-scheme: dark;
}

/* Base Body & Layout */
[data-bs-theme="dark"] body,
html.dark-theme body {
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] main,
html.dark-theme main {
    background-color: #0d1117;
}

/* Typography & Headings */
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] h2, [data-bs-theme="dark"] .h2,
[data-bs-theme="dark"] h3, [data-bs-theme="dark"] .h3,
[data-bs-theme="dark"] h4, [data-bs-theme="dark"] .h4,
[data-bs-theme="dark"] h5, [data-bs-theme="dark"] .h5,
[data-bs-theme="dark"] h6, [data-bs-theme="dark"] .h6,
html.dark-theme h1, html.dark-theme .h1,
html.dark-theme h2, html.dark-theme .h2,
html.dark-theme h3, html.dark-theme .h3,
html.dark-theme h4, html.dark-theme .h4,
html.dark-theme h5, html.dark-theme .h5,
html.dark-theme h6 {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .text-dark,
html.dark-theme .text-dark {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .text-muted,
html.dark-theme .text-muted {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .text-secondary,
html.dark-theme .text-secondary {
    color: #8b949e !important;
}

[data-bs-theme="dark"] strong,
html.dark-theme strong {
    color: #f0f6fc;
}

/* ==========================================================================
   1. HOME PAGE SECTIONS
   ========================================================================== */

/* Hero Section */
[data-bs-theme="dark"] .hero-section,
html.dark-theme .hero-section {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%) !important;
}

[data-bs-theme="dark"] .hero-dot-pattern,
html.dark-theme .hero-dot-pattern {
    opacity: 0.2;
    background-image: radial-gradient(#6e7681 1.5px, transparent 1.5px);
}

[data-bs-theme="dark"] .hero-badge,
html.dark-theme .hero-badge {
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.15);
    border-color: rgba(var(--t-500-rgb, 99, 102, 241), 0.35);
    color: var(--t-300, #a5b4fc);
}

[data-bs-theme="dark"] .hero-title,
html.dark-theme .hero-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .hero-subtitle,
html.dark-theme .hero-subtitle {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .btn-hero-secondary,
[data-bs-theme="dark"] .btn-hero-demo,
html.dark-theme .btn-hero-secondary,
html.dark-theme .btn-hero-demo {
    background: #161b22;
    border: 1px solid #30363d;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-hero-secondary:hover,
[data-bs-theme="dark"] .btn-hero-demo:hover,
html.dark-theme .btn-hero-secondary:hover,
html.dark-theme .btn-hero-demo:hover {
    background: #21262d;
    border-color: #484f58;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .play-icon-circle,
html.dark-theme .play-icon-circle {
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.2);
    color: var(--t-400, #818cf8);
}

[data-bs-theme="dark"] .trust-item span,
html.dark-theme .trust-item span {
    color: #c9d1d9;
}

/* 3D Laptop Display Content */
[data-bs-theme="dark"] .laptop-screen,
html.dark-theme .laptop-screen {
    background: #0d1117;
    border-color: #30363d;
}

[data-bs-theme="dark"] .dash-header,
html.dark-theme .dash-header {
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

[data-bs-theme="dark"] .dash-welcome,
html.dark-theme .dash-welcome {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .dash-prompt,
html.dark-theme .dash-prompt {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .dash-stat-card,
html.dark-theme .dash-stat-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .dash-stat-label,
html.dark-theme .dash-stat-label {
    color: #8b949e;
}

[data-bs-theme="dark"] .dash-stat-val,
html.dark-theme .dash-stat-val {
    color: #f0f6fc !important;
}

/* Floating Stats Counter Bar */
[data-bs-theme="dark"] .stats-counter-card,
html.dark-theme .stats-counter-card {
    background: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .counter-num,
html.dark-theme .counter-num {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .counter-label,
html.dark-theme .counter-label {
    color: #8b949e !important;
}

/* Popular Exams Section */
[data-bs-theme="dark"] .popular-exams-section,
html.dark-theme .popular-exams-section {
    background: #0d1117;
}

[data-bs-theme="dark"] .section-heading,
html.dark-theme .section-heading {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-slider-arrow,
html.dark-theme .btn-slider-arrow {
    background: #161b22;
    border-color: #30363d;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .btn-slider-arrow:hover,
html.dark-theme .btn-slider-arrow:hover {
    background: var(--t-500, #6366f1);
    border-color: var(--t-500, #6366f1);
    color: #ffffff;
}

[data-bs-theme="dark"] .exam-card-link,
html.dark-theme .exam-card-link {
    background: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme="dark"] .exam-card-link:hover,
html.dark-theme .exam-card-link:hover {
    background: #1c2128 !important;
    border-color: var(--t-500, #6366f1) !important;
    box-shadow: 0 14px 30px rgba(var(--t-500-rgb, 99, 102, 241), 0.2) !important;
}

[data-bs-theme="dark"] .exam-name,
html.dark-theme .exam-name {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .exam-desc,
html.dark-theme .exam-desc {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-meta,
html.dark-theme .exam-meta {
    color: #8b949e !important;
}

/* Features Section (What You Will Get) */
[data-bs-theme="dark"] .features-section,
html.dark-theme .features-section {
    background: #0d1117;
}

[data-bs-theme="dark"] .feature-tile,
html.dark-theme .feature-tile {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .feature-tile:hover,
html.dark-theme .feature-tile:hover {
    background: #1c2128 !important;
    border-color: #484f58 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .feature-title,
html.dark-theme .feature-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .feature-desc,
html.dark-theme .feature-desc {
    color: #8b949e !important;
}

/* Workflow Section (How ExamLearn Works) */
[data-bs-theme="dark"] .workflow-section,
html.dark-theme .workflow-section {
    background: #0d1117 !important;
}

[data-bs-theme="dark"] .workflow-step-card,
html.dark-theme .workflow-step-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .workflow-step-card:hover,
html.dark-theme .workflow-step-card:hover {
    background: #1c2128 !important;
    border-color: var(--t-500, #6366f1) !important;
}

[data-bs-theme="dark"] .step-title,
html.dark-theme .step-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .step-desc,
html.dark-theme .step-desc {
    color: #8b949e !important;
}

/* Testimonials Section */
[data-bs-theme="dark"] .testimonials-section,
html.dark-theme .testimonials-section {
    background: #0d1117;
}

[data-bs-theme="dark"] .testimonial-card,
html.dark-theme .testimonial-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .testimonial-card:hover,
html.dark-theme .testimonial-card:hover {
    background: #1c2128 !important;
    border-color: #484f58 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .testimonial-quote,
html.dark-theme .testimonial-quote {
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .author-name,
html.dark-theme .author-name {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .author-role,
html.dark-theme .author-role {
    color: #8b949e !important;
}

/* ==========================================================================
   2. COMPETITIVE EXAMS PAGE & DETAILS
   ========================================================================== */

[data-bs-theme="dark"] .exams-page-container,
html.dark-theme .exams-page-container {
    background: #0d1117 !important;
}

[data-bs-theme="dark"] .exams-hero-banner,
html.dark-theme .exams-hero-banner {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .exams-hero-title,
html.dark-theme .exams-hero-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .exams-hero-subtitle,
html.dark-theme .exams-hero-subtitle {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-stat-pill,
html.dark-theme .exam-stat-pill {
    background: #1c2128 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .stat-pill-val,
html.dark-theme .stat-pill-val {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .stat-pill-label,
html.dark-theme .stat-pill-label {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exams-filter-bar,
html.dark-theme .exams-filter-bar {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .search-input-wrap input,
html.dark-theme .search-input-wrap input {
    background: #0d1117 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .exam-grid-card,
html.dark-theme .exam-grid-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .exam-grid-card:hover,
html.dark-theme .exam-grid-card:hover {
    background: #1c2128 !important;
    border-color: var(--t-500, #6366f1) !important;
}

[data-bs-theme="dark"] .view-all-tile,
html.dark-theme .view-all-tile {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .view-all-tile:hover,
html.dark-theme .view-all-tile:hover {
    background: #1c2128 !important;
    border-color: var(--t-500, #6366f1) !important;
}

[data-bs-theme="dark"] .tile-title,
html.dark-theme .tile-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .tile-desc,
html.dark-theme .tile-desc {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .btn-explore-all,
html.dark-theme .btn-explore-all {
    background: #161b22 !important;
    border-color: var(--t-500, #6366f1) !important;
    color: var(--t-300, #a5b4fc) !important;
}

[data-bs-theme="dark"] .btn-explore-all:hover,
html.dark-theme .btn-explore-all:hover {
    background: var(--t-500, #6366f1) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .exams-trust-bar,
html.dark-theme .exams-trust-bar {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .trust-bar-title,
html.dark-theme .trust-bar-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .trust-bar-desc,
html.dark-theme .trust-bar-desc {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-card-title,
html.dark-theme .exam-card-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .exam-card-subtitle,
html.dark-theme .exam-card-subtitle {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-stage-pill,
html.dark-theme .exam-stage-pill {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: var(--t-300, #a5b4fc) !important;
}

[data-bs-theme="dark"] .btn-clear-filters,
html.dark-theme .btn-clear-filters {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #8b949e !important;
}

[data-bs-theme="dark"] .btn-clear-filters:hover,
html.dark-theme .btn-clear-filters:hover {
    background: #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .exam-card-action,
html.dark-theme .exam-card-action {
    color: var(--t-400, #818cf8) !important;
    border-top-color: #30363d !important;
}

[data-bs-theme="dark"] .exam-card-metrics,
html.dark-theme .exam-card-metrics {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exams-breadcrumb-nav a,
html.dark-theme .exams-breadcrumb-nav a {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exams-breadcrumb-nav .active-crumb,
html.dark-theme .exams-breadcrumb-nav .active-crumb {
    color: #f0f6fc !important;
}

/* Exam Details Header & Subnav */
[data-bs-theme="dark"] .exam-detail-header-card,
html.dark-theme .exam-detail-header-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .exam-detail-title,
html.dark-theme .exam-detail-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .exam-detail-org,
html.dark-theme .exam-detail-org {
    color: var(--t-300, #a5b4fc) !important;
}

[data-bs-theme="dark"] .exam-detail-fullname,
html.dark-theme .exam-detail-fullname {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-detail-summary,
html.dark-theme .exam-detail-summary {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-dates-sidebar-card,
html.dark-theme .exam-dates-sidebar-card {
    background: #1c2128 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .dates-card-title,
html.dark-theme .dates-card-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .dates-list li,
html.dark-theme .dates-list li {
    border-bottom-color: #30363d !important;
}

[data-bs-theme="dark"] .date-label,
html.dark-theme .date-label {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .date-val,
html.dark-theme .date-val {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-notification-check,
html.dark-theme .btn-notification-check {
    background: #161b22 !important;
    border-color: var(--t-500, #6366f1) !important;
    color: var(--t-300, #a5b4fc) !important;
}

[data-bs-theme="dark"] .btn-notification-check:hover,
html.dark-theme .btn-notification-check:hover {
    background: var(--t-500, #6366f1) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .exam-subnav-bar,
html.dark-theme .exam-subnav-bar {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .exam-subnav-item,
html.dark-theme .exam-subnav-item {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-subnav-item:hover,
html.dark-theme .exam-subnav-item:hover {
    color: var(--t-300, #a5b4fc) !important;
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.12) !important;
}

[data-bs-theme="dark"] .exam-subnav-item.active,
html.dark-theme .exam-subnav-item.active {
    color: var(--t-400, #818cf8) !important;
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.2) !important;
}

[data-bs-theme="dark"] .exam-focus-callout,
html.dark-theme .exam-focus-callout {
    background: rgba(var(--t-600-rgb, 79, 70, 229), 0.15) !important;
    border-color: rgba(var(--t-600-rgb, 79, 70, 229), 0.3) !important;
    border-left: 4px solid var(--t-500, #6366f1) !important;
    color: var(--t-200, #c7d2fe) !important;
}

[data-bs-theme="dark"] .component-spec-table th,
html.dark-theme .component-spec-table th {
    background: #101626 !important;
    color: #8b949e !important;
    border-bottom: 1px solid #30363d !important;
}

[data-bs-theme="dark"] .component-spec-table td,
html.dark-theme .component-spec-table td {
    color: #c9d1d9 !important;
    border-bottom: 1px solid #30363d !important;
}

/* ==========================================================================
   3. TOPICS PAGES
   ========================================================================== */

[data-bs-theme="dark"] .topic-page-container,
html.dark-theme .topic-page-container {
    background: #0d1117 !important;
}

[data-bs-theme="dark"] .sidebar-category-card,
[data-bs-theme="dark"] .sidebar-section-card,
html.dark-theme .sidebar-category-card,
html.dark-theme .sidebar-section-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .sidebar-heading,
html.dark-theme .sidebar-heading {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .category-nav-link,
html.dark-theme .category-nav-link {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .category-nav-link:hover,
html.dark-theme .category-nav-link:hover {
    background-color: #1c2128 !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .topic-hero-banner,
html.dark-theme .topic-hero-banner {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .topic-hero-title,
html.dark-theme .topic-hero-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .topic-hero-desc,
html.dark-theme .topic-hero-desc {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .filter-pill-btn,
html.dark-theme .filter-pill-btn {
    background: #161b22 !important;
    border-color: #30363d !important;
    color: #8b949e !important;
}

[data-bs-theme="dark"] .filter-pill-btn:hover,
html.dark-theme .filter-pill-btn:hover {
    background-color: #1c2128 !important;
    border-color: #484f58 !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .topic-item-card,
html.dark-theme .topic-item-card {
    background: #161b22 !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .topic-item-card:hover,
html.dark-theme .topic-item-card:hover {
    background: #1c2128 !important;
    border-color: #484f58 !important;
}

[data-bs-theme="dark"] .topic-card-icon-box,
html.dark-theme .topic-card-icon-box {
    background: #1c2128 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .topic-card-title,
html.dark-theme .topic-card-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .topic-card-desc,
html.dark-theme .topic-card-desc {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .topics-count-text,
html.dark-theme .topics-count-text {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .sort-dropdown-btn,
html.dark-theme .sort-dropdown-btn {
    background: #161b22 !important;
    border-color: #30363d !important;
    color: #8b949e !important;
}

/* Topics Right Sidebar Widgets (Your Progress, Quick Links, Popular Exams) */
[data-bs-theme="dark"] .right-sidebar-widget,
html.dark-theme .right-sidebar-widget {
    background: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

[data-bs-theme="dark"] .widget-main-title,
html.dark-theme .widget-main-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .donut-progress-val,
html.dark-theme .donut-progress-val {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .donut-progress-lbl,
html.dark-theme .donut-progress-lbl {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .donut-progress-container svg path:first-child,
html.dark-theme .donut-progress-container svg path:first-child {
    stroke: #30363d !important;
}

[data-bs-theme="dark"] .prog-stat-lbl,
html.dark-theme .prog-stat-lbl {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .prog-stat-val,
html.dark-theme .prog-stat-val {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .quick-link-btn,
html.dark-theme .quick-link-btn {
    background: #21262d !important;
    border: 1px solid #30363d !important;
}

[data-bs-theme="dark"] .quick-link-btn:hover,
html.dark-theme .quick-link-btn:hover {
    background: #28303a !important;
    border-color: #484f58 !important;
}

[data-bs-theme="dark"] .quick-link-title,
html.dark-theme .quick-link-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .ql-icon-blue { background: rgba(37, 99, 235, 0.2) !important; color: #60a5fa !important; }
[data-bs-theme="dark"] .ql-icon-indigo { background: rgba(var(--t-600-rgb, 79, 70, 229), 0.2) !important; color: var(--t-400, #818cf8) !important; }
[data-bs-theme="dark"] .ql-icon-green { background: rgba(22, 163, 74, 0.2) !important; color: #4ade80 !important; }
[data-bs-theme="dark"] .ql-icon-purple { background: rgba(124, 58, 237, 0.2) !important; color: #a78bfa !important; }
[data-bs-theme="dark"] .ql-icon-red { background: rgba(220, 38, 38, 0.2) !important; color: #f87171 !important; }
[data-bs-theme="dark"] .ql-icon-cyan { background: rgba(8, 145, 178, 0.2) !important; color: #22d3ee !important; }
html.dark-theme .ql-icon-blue { background: rgba(37, 99, 235, 0.2) !important; color: #60a5fa !important; }
html.dark-theme .ql-icon-indigo { background: rgba(var(--t-600-rgb, 79, 70, 229), 0.2) !important; color: var(--t-400, #818cf8) !important; }
html.dark-theme .ql-icon-green { background: rgba(22, 163, 74, 0.2) !important; color: #4ade80 !important; }
html.dark-theme .ql-icon-purple { background: rgba(124, 58, 237, 0.2) !important; color: #a78bfa !important; }
html.dark-theme .ql-icon-red { background: rgba(220, 38, 38, 0.2) !important; color: #f87171 !important; }
html.dark-theme .ql-icon-cyan { background: rgba(8, 145, 178, 0.2) !important; color: #22d3ee !important; }

[data-bs-theme="dark"] .popular-exam-item,
html.dark-theme .popular-exam-item {
    border-bottom: 1px solid #30363d !important;
}

[data-bs-theme="dark"] .exam-logo-box,
html.dark-theme .exam-logo-box {
    background: #21262d !important;
    color: #8b949e !important;
}

[data-bs-theme="dark"] .exam-meta-title,
html.dark-theme .exam-meta-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .exam-meta-sub,
html.dark-theme .exam-meta-sub {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .btn-explore-exam,
html.dark-theme .btn-explore-exam {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: var(--t-300, #a5b4fc) !important;
}

[data-bs-theme="dark"] .btn-explore-exam:hover,
html.dark-theme .btn-explore-exam:hover {
    background: var(--t-500, #6366f1) !important;
    border-color: var(--t-500, #6366f1) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .topic-card-footer,
html.dark-theme .topic-card-footer {
    border-top-color: #30363d !important;
}

[data-bs-theme="dark"] .request-topic-banner,
html.dark-theme .request-topic-banner {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .request-icon-node,
html.dark-theme .request-icon-node {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

[data-bs-theme="dark"] .request-title,
html.dark-theme .request-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .request-desc,
html.dark-theme .request-desc {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .btn-request-topic,
html.dark-theme .btn-request-topic {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-request-topic:hover,
html.dark-theme .btn-request-topic:hover {
    background: #30363d !important;
    color: #ffffff !important;
}

/* Topic Details Component */
[data-bs-theme="dark"] .tp-header-card,
[data-bs-theme="dark"] .tp-content-card,
[data-bs-theme="dark"] .tp-sidebar-card,
[data-bs-theme="dark"] .tp-notes-table-card,
[data-bs-theme="dark"] .tp-test-knowledge-card,
[data-bs-theme="dark"] .tp-component-card,
html.dark-theme .tp-header-card,
html.dark-theme .tp-content-card,
html.dark-theme .tp-sidebar-card,
html.dark-theme .tp-notes-table-card,
html.dark-theme .tp-test-knowledge-card,
html.dark-theme .tp-component-card {
    background: #161b22 !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .tp-breadcrumb a,
html.dark-theme .tp-breadcrumb a {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .tp-breadcrumb .current,
html.dark-theme .tp-breadcrumb .current {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-bookmark-action,
[data-bs-theme="dark"] .btn-tp-nav-prev,
[data-bs-theme="dark"] .btn-tp-back-cat,
html.dark-theme .btn-bookmark-action,
html.dark-theme .btn-tp-nav-prev,
html.dark-theme .btn-tp-back-cat {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-bookmark-action:hover,
[data-bs-theme="dark"] .btn-tp-nav-prev:hover,
[data-bs-theme="dark"] .btn-tp-back-cat:hover,
html.dark-theme .btn-bookmark-action:hover,
html.dark-theme .btn-tp-nav-prev:hover,
html.dark-theme .btn-tp-back-cat:hover {
    background: #30363d !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .tp-tab-item,
html.dark-theme .tp-tab-item {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .tp-tab-item:hover,
html.dark-theme .tp-tab-item:hover {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .tp-tab-item.active,
html.dark-theme .tp-tab-item.active {
    color: var(--t-400, #818cf8) !important;
}

[data-bs-theme="dark"] .tp-tabs-nav,
html.dark-theme .tp-tabs-nav {
    border-bottom-color: #30363d !important;
}

[data-bs-theme="dark"] .tp-section-heading,
[data-bs-theme="dark"] .tp-comp-title,
[data-bs-theme="dark"] .table-cell-component,
[data-bs-theme="dark"] .tp-gauge-text,
[data-bs-theme="dark"] .tp-progress-sub,
[data-bs-theme="dark"] .tp-test-title,
[data-bs-theme="dark"] .tp-main-title,
html.dark-theme .tp-section-heading,
html.dark-theme .tp-comp-title,
html.dark-theme .table-cell-component,
html.dark-theme .tp-gauge-text,
html.dark-theme .tp-progress-sub,
html.dark-theme .tp-test-title,
html.dark-theme .tp-main-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .tp-section-desc,
[data-bs-theme="dark"] .tp-comp-desc,
[data-bs-theme="dark"] .tp-adv-item,
[data-bs-theme="dark"] .tp-bullet-list li,
[data-bs-theme="dark"] .tp-test-desc,
[data-bs-theme="dark"] .tp-main-subtitle,
[data-bs-theme="dark"] .tp-progress-label,
html.dark-theme .tp-section-desc,
html.dark-theme .tp-comp-desc,
html.dark-theme .tp-adv-item,
html.dark-theme .tp-bullet-list li,
html.dark-theme .tp-test-desc,
html.dark-theme .tp-main-subtitle,
html.dark-theme .tp-progress-label {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .tp-callout-box,
html.dark-theme .tp-callout-box {
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.12) !important;
    border-left-color: var(--t-500, #6366f1) !important;
    color: var(--t-200, #c7d2fe) !important;
}

[data-bs-theme="dark"] .tp-table th,
html.dark-theme .tp-table th {
    background: #101626 !important;
    border-bottom: 1px solid #30363d !important;
    color: #8b949e !important;
}

[data-bs-theme="dark"] .tp-table td,
html.dark-theme .tp-table td {
    border-bottom: 1px solid #30363d !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .sibling-link-item,
html.dark-theme .sibling-link-item {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .sibling-link-item:hover,
html.dark-theme .sibling-link-item:hover {
    background: #21262d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .sibling-link-item.active,
html.dark-theme .sibling-link-item.active {
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.2) !important;
    color: var(--t-400, #818cf8) !important;
}

[data-bs-theme="dark"] .sibling-mcq-badge,
html.dark-theme .sibling-mcq-badge {
    background: #21262d !important;
    color: #8b949e !important;
}

[data-bs-theme="dark"] .badge-pill-mcq,
[data-bs-theme="dark"] .badge-pill-views,
html.dark-theme .badge-pill-mcq,
html.dark-theme .badge-pill-views {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #8b949e !important;
}

[data-bs-theme="dark"] .tp-progress-bar-container,
html.dark-theme .tp-progress-bar-container {
    background: #21262d !important;
}

/* ==========================================================================
   4. MCQS & PRACTICE & RESULTS
   ========================================================================== */

[data-bs-theme="dark"] .mcq-practice-container,
html.dark-theme .mcq-practice-container {
    background: #0d1117 !important;
}

[data-bs-theme="dark"] .sidebar-menu-card,
html.dark-theme .sidebar-menu-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .sidebar-section-title,
html.dark-theme .sidebar-section-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .mcq-menu-link,
[data-bs-theme="dark"] .subject-menu-link,
html.dark-theme .mcq-menu-link,
html.dark-theme .subject-menu-link {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .mcq-menu-link:hover,
[data-bs-theme="dark"] .subject-menu-link:hover,
html.dark-theme .mcq-menu-link:hover,
html.dark-theme .subject-menu-link:hover {
    background-color: #1c2128 !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .question-practice-card,
html.dark-theme .question-practice-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .topic-main-heading,
[data-bs-theme="dark"] .question-main-text,
[data-bs-theme="dark"] .stat-val-bold,
[data-bs-theme="dark"] .more-topics-title,
[data-bs-theme="dark"] .subtopic-mini-title,
[data-bs-theme="dark"] .progress-radial-val,
html.dark-theme .topic-main-heading,
html.dark-theme .question-main-text,
html.dark-theme .stat-val-bold,
html.dark-theme .more-topics-title,
html.dark-theme .subtopic-mini-title,
html.dark-theme .progress-radial-val {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .topic-sub-desc,
[data-bs-theme="dark"] .question-counter-badge,
[data-bs-theme="dark"] .question-marks-badge,
[data-bs-theme="dark"] .stat-lbl-sm,
[data-bs-theme="dark"] .subtopic-mini-count,
[data-bs-theme="dark"] .progress-radial-sub,
[data-bs-theme="dark"] .progress-list-item,
[data-bs-theme="dark"] .legend-item-row,
[data-bs-theme="dark"] .mini-status-bar,
html.dark-theme .topic-sub-desc,
html.dark-theme .question-counter-badge,
html.dark-theme .question-marks-badge,
html.dark-theme .stat-lbl-sm,
html.dark-theme .subtopic-mini-count,
html.dark-theme .progress-radial-sub,
html.dark-theme .progress-list-item,
html.dark-theme .legend-item-row,
html.dark-theme .mini-status-bar {
    color: #8b949e !important;
}

/* Option Items (MCQ Option Cards A, B, C, D) */
[data-bs-theme="dark"] .option-item-row,
html.dark-theme .option-item-row {
    background: #161b22 !important;
    border: 1.5px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .option-item-row:hover,
html.dark-theme .option-item-row:hover {
    background: #1c2128 !important;
    border-color: #484f58 !important;
}

[data-bs-theme="dark"] .option-left-content,
html.dark-theme .option-left-content {
    background: transparent !important;
    border: none !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .option-letter-circle,
html.dark-theme .option-letter-circle {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #8b949e !important;
}

[data-bs-theme="dark"] .option-item-row.correct-selected,
[data-bs-theme="dark"] .option-item-row.correct-revealed,
html.dark-theme .option-item-row.correct-selected,
html.dark-theme .option-item-row.correct-revealed {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .option-item-row.wrong-selected,
html.dark-theme .option-item-row.wrong-selected {
    background-color: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #f0f6fc !important;
}

/* Question Navigator (1 to 20 buttons) */
[data-bs-theme="dark"] .nav-grid-btn,
html.dark-theme .nav-grid-btn {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .nav-grid-btn:hover,
html.dark-theme .nav-grid-btn:hover {
    background: #21262d !important;
    border-color: #484f58 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .nav-grid-btn.state-answered,
html.dark-theme .nav-grid-btn.state-answered {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
}

[data-bs-theme="dark"] .nav-grid-btn.state-review,
html.dark-theme .nav-grid-btn.state-review {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: #f97316 !important;
    color: #fb923c !important;
}

[data-bs-theme="dark"] .nav-grid-btn.state-active,
html.dark-theme .nav-grid-btn.state-active {
    border: 2px solid var(--t-500, #6366f1) !important;
    box-shadow: 0 0 0 2px rgba(var(--t-500-rgb, 99, 102, 241), 0.3) !important;
}

/* Bottom Toolbar Buttons & Actions */
[data-bs-theme="dark"] .question-nav-bottom-toolbar,
html.dark-theme .question-nav-bottom-toolbar {
    border-top: 1px solid #30363d !important;
}

[data-bs-theme="dark"] .btn-nav-prev,
[data-bs-theme="dark"] .btn-nav-review,
html.dark-theme .btn-nav-prev,
html.dark-theme .btn-nav-review {
    background: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-nav-prev:hover,
[data-bs-theme="dark"] .btn-nav-review:hover,
html.dark-theme .btn-nav-prev:hover,
html.dark-theme .btn-nav-review:hover {
    background: #21262d !important;
    border-color: #484f58 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-nav-review.active,
html.dark-theme .btn-nav-review.active {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: #f97316 !important;
    color: #fb923c !important;
}

[data-bs-theme="dark"] .btn-header-action,
html.dark-theme .btn-header-action {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-header-action:hover,
html.dark-theme .btn-header-action:hover {
    background: #30363d !important;
    color: #ffffff !important;
}

/* Right Sidebar & Subtopics */
[data-bs-theme="dark"] .right-sidebar-box,
[data-bs-theme="dark"] .stat-meta-card,
[data-bs-theme="dark"] .subtopic-mini-card,
html.dark-theme .right-sidebar-box,
html.dark-theme .stat-meta-card,
html.dark-theme .subtopic-mini-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .btn-pause-test,
html.dark-theme .btn-pause-test {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .btn-pause-test:hover,
html.dark-theme .btn-pause-test:hover {
    background: #30363d !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .timer-strip-box,
html.dark-theme .timer-strip-box {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

[data-bs-theme="dark"] .timer-label-left,
html.dark-theme .timer-label-left {
    color: #f87171 !important;
}

[data-bs-theme="dark"] .timer-digits-right,
html.dark-theme .timer-digits-right {
    color: #ef4444 !important;
}

[data-bs-theme="dark"] .subtopic-mini-icon,
html.dark-theme .subtopic-mini-icon {
    background: #21262d !important;
    color: var(--t-400, #818cf8) !important;
}

[data-bs-theme="dark"] .btn-subtopic-practice,
html.dark-theme .btn-subtopic-practice {
    background: #21262d !important;
    border: 1px solid #30363d !important;
    color: var(--t-300, #a5b4fc) !important;
}

[data-bs-theme="dark"] .btn-subtopic-practice:hover,
html.dark-theme .btn-subtopic-practice:hover {
    background: var(--t-600, #4f46e5) !important;
    border-color: var(--t-600, #4f46e5) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .explanation-box-card,
html.dark-theme .explanation-box-card {
    background: rgba(var(--t-500-rgb, 99, 102, 241), 0.12) !important;
    border: 1px solid rgba(var(--t-500-rgb, 99, 102, 241), 0.3) !important;
    color: #c9d1d9 !important;
}

/* Result Page */
[data-bs-theme="dark"] .result-container-fluid,
html.dark-theme .result-container-fluid {
    background: #0d1117 !important;
}

[data-bs-theme="dark"] .celebration-hero-card,
[data-bs-theme="dark"] .metric-box-card,
[data-bs-theme="dark"] .insight-card,
[data-bs-theme="dark"] .modal-solution-card,
[data-bs-theme="dark"] .summary-card,
[data-bs-theme="dark"] .whats-next-card,
html.dark-theme .celebration-hero-card,
html.dark-theme .metric-box-card,
html.dark-theme .insight-card,
html.dark-theme .modal-solution-card,
html.dark-theme .summary-card,
html.dark-theme .whats-next-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .hero-side-card,
html.dark-theme .hero-side-card {
    background: #1c2128 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .hero-card-heading,
[data-bs-theme="dark"] .gauge-score-num,
[data-bs-theme="dark"] .hero-marks-badge,
[data-bs-theme="dark"] .whats-next-title,
[data-bs-theme="dark"] .summary-card-title,
[data-bs-theme="dark"] .summary-value,
[data-bs-theme="dark"] .legend-val,
[data-bs-theme="dark"] .modal-solution-qtext,
[data-bs-theme="dark"] .bottom-upgrade-title,
html.dark-theme .hero-card-heading,
html.dark-theme .gauge-score-num,
html.dark-theme .hero-marks-badge,
html.dark-theme .whats-next-title,
html.dark-theme .summary-card-title,
html.dark-theme .summary-value,
html.dark-theme .legend-val,
html.dark-theme .modal-solution-qtext,
html.dark-theme .bottom-upgrade-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .hero-card-desc,
[data-bs-theme="dark"] .gauge-score-label,
[data-bs-theme="dark"] .whats-next-subtitle,
[data-bs-theme="dark"] .summary-label,
[data-bs-theme="dark"] .legend-bullet-label,
[data-bs-theme="dark"] .time-analysis-header,
[data-bs-theme="dark"] .bottom-upgrade-desc,
[data-bs-theme="dark"] .premium-features-list li,
html.dark-theme .hero-card-desc,
html.dark-theme .gauge-score-label,
html.dark-theme .whats-next-subtitle,
html.dark-theme .summary-label,
html.dark-theme .legend-bullet-label,
html.dark-theme .time-analysis-header,
html.dark-theme .bottom-upgrade-desc,
html.dark-theme .premium-features-list li {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .gauge-svg-wrapper .gauge-bg,
html.dark-theme .gauge-svg-wrapper .gauge-bg {
    stroke: #30363d !important;
}

[data-bs-theme="dark"] .next-action-card-btn:not(.primary),
html.dark-theme .next-action-card-btn:not(.primary) {
    background: #21262d !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .next-action-card-btn:not(.primary) .next-action-btn-title,
html.dark-theme .next-action-card-btn:not(.primary) .next-action-btn-title {
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .next-action-card-btn:not(.primary) .next-action-btn-desc,
html.dark-theme .next-action-card-btn:not(.primary) .next-action-btn-desc {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .summary-row,
[data-bs-theme="dark"] .perf-meta-row,
[data-bs-theme="dark"] .time-analysis-box,
html.dark-theme .summary-row,
html.dark-theme .perf-meta-row,
html.dark-theme .time-analysis-box {
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .btn-detailed-analysis,
html.dark-theme .btn-detailed-analysis {
    background: #21262d !important;
    border-color: #30363d !important;
    color: var(--t-300, #a5b4fc) !important;
}

[data-bs-theme="dark"] .btn-detailed-analysis:hover,
html.dark-theme .btn-detailed-analysis:hover {
    background: #30363d !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .modal-option-row,
html.dark-theme .modal-option-row {
    background: #21262d !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .modal-option-row.correct-ans,
html.dark-theme .modal-option-row.correct-ans {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: #10b981 !important;
    color: #34d399 !important;
}

[data-bs-theme="dark"] .bottom-upgrade-banner,
[data-bs-theme="dark"] .premium-promo-card,
html.dark-theme .bottom-upgrade-banner,
html.dark-theme .premium-promo-card {
    background: #161b22 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .premium-promo-card .crown-header,
html.dark-theme .premium-promo-card .crown-header {
    color: var(--t-300, #a5b4fc) !important;
}

/* ==========================================================================
   5. CURRENT AFFAIRS PAGES
   ========================================================================== */

[data-bs-theme="dark"] .ca-main-container,
html.dark-theme .ca-main-container {
    background: #0d1117 !important;
}

[data-bs-theme="dark"] .top-news-card,
[data-bs-theme="dark"] .news-item-card,
[data-bs-theme="dark"] .story-ranked-card,
[data-bs-theme="dark"] .ca-sidebar-card,
[data-bs-theme="dark"] .ca-right-card,
[data-bs-theme="dark"] .article-main-card,
[data-bs-theme="dark"] .ca-stat-card,
html.dark-theme .top-news-card,
html.dark-theme .news-item-card,
html.dark-theme .story-ranked-card,
html.dark-theme .ca-sidebar-card,
html.dark-theme .ca-right-card,
html.dark-theme .article-main-card,
html.dark-theme .ca-stat-card {
    background: #161b22 !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .ca-nav-item,
html.dark-theme .ca-nav-item {
    color: #8b949e !important;
}

[data-bs-theme="dark"] .ca-nav-item:hover,
html.dark-theme .ca-nav-item:hover {
    background-color: #1c2128 !important;
    color: #f0f6fc !important;
}

/* ==========================================================================
   6. USER PROFILE & DASHBOARD & GENERAL UTILITIES
   ========================================================================== */

[data-bs-theme="dark"] .card,
html.dark-theme .card {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer,
html.dark-theme .card-header,
html.dark-theme .card-footer {
    background-color: transparent !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
html.dark-theme .form-control,
html.dark-theme .form-select {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #f0f6fc !important;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
html.dark-theme .form-control:focus,
html.dark-theme .form-select:focus {
    border-color: var(--t-500, #6366f1) !important;
    box-shadow: 0 0 0 3px rgba(var(--t-500-rgb, 99, 102, 241), 0.25) !important;
    background-color: #161b22 !important;
}

[data-bs-theme="dark"] .form-label,
html.dark-theme .form-label {
    color: #f0f6fc !important;
}

/* Modals & Dropdowns */
[data-bs-theme="dark"] .modal-content,
html.dark-theme .modal-content {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #f0f6fc !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer,
html.dark-theme .modal-header,
html.dark-theme .modal-footer {
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .dropdown-menu,
html.dark-theme .dropdown-menu {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .dropdown-item,
html.dark-theme .dropdown-item {
    color: #c9d1d9 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus,
html.dark-theme .dropdown-item:hover,
html.dark-theme .dropdown-item:focus {
    background-color: #21262d !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .dropdown-divider,
html.dark-theme .dropdown-divider {
    border-color: #30363d !important;
}

/* Tables */
[data-bs-theme="dark"] .table,
html.dark-theme .table {
    color: #c9d1d9 !important;
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .table th,
html.dark-theme .table th {
    background-color: #101626 !important;
    color: #8b949e !important;
    border-bottom: 1px solid #30363d !important;
}

[data-bs-theme="dark"] .table td,
html.dark-theme .table td {
    color: #c9d1d9 !important;
    border-bottom: 1px solid #30363d !important;
}

[data-bs-theme="dark"] .table-hover > tbody > tr:hover > *,
html.dark-theme .table-hover > tbody > tr:hover > * {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #f0f6fc !important;
}

/* Utilities */
[data-bs-theme="dark"] .bg-white,
html.dark-theme .bg-white {
    background-color: #161b22 !important;
}

[data-bs-theme="dark"] .bg-light,
html.dark-theme .bg-light {
    background-color: #0d1117 !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end,
html.dark-theme .border,
html.dark-theme .border-top,
html.dark-theme .border-bottom,
html.dark-theme .border-start,
html.dark-theme .border-end {
    border-color: #30363d !important;
}

[data-bs-theme="dark"] .badge.bg-light,
html.dark-theme .badge.bg-light {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border: 1px solid #30363d !important;
}

/* Close button */
[data-bs-theme="dark"] .btn-close,
html.dark-theme .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Code & Pre */
[data-bs-theme="dark"] pre,
[data-bs-theme="dark"] code,
html.dark-theme pre,
html.dark-theme code {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

/* Theme Toggle Button Enhancement */
#themeToggle, .nav-theme-btn {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

#themeToggle:hover, .nav-theme-btn:hover {
    transform: scale(1.1);
}
