/* =========================================================
   EXAMSPARK GLOBAL CSS THEME (Based on Economics Ch 8)
   ========================================================= */

:root {
    --primary-color: #4A90E2; 
    --accent-color: #FF6B6B;
    --bg-color: #F4F7F6;
    --text-dark: #333;
    --sst-color: #27ae60; /* Green for Geography */
    --success-color: #2ecc71;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ================= HEADER & NAVBAR ================= */
header {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img { height: 40px; vertical-align: middle; }
.logo-text { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary-color); }

/* ================= FOOTER ================= */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 5px solid var(--primary-color);
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.copyright {
    font-size: 0.9rem;
    color: #7f8c8d;
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ================= CHAPTER PAGES LAYOUT ================= */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .main-layout, .dashboard-container { grid-template-columns: 1fr !important; }
}

.content-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
}

.breadcrumbs { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--primary-color); text-decoration: none; }

h1 { color: var(--primary-color); margin-top: 0; font-size: 2rem; }
h2 { border-bottom: 2px solid var(--accent-color); padding-bottom: 0.5rem; margin-top: 2rem; color: #2c3e50; }
h3 { font-size: 1.2rem; color: #444; margin-bottom: 0.5rem; font-weight: bold; }

.question-block { margin-bottom: 1.5rem; }
.answer-box {
    background: #f4f8fd;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    line-height: 1.6;
    border-radius: 4px;
}

.section-label {
    background: #eee; padding: 5px 10px; border-radius: 4px;
    font-size: 0.8rem; font-weight: bold; color: #555; display: inline-block; margin-bottom: 10px;
}
.pyq-tag {
    background: #ffecb3; color: #856404; padding: 2px 8px; border-radius: 4px;
    font-size: 0.8rem; font-weight: bold; margin-left: 10px;
}

.concept-list { list-style-type: none; padding: 0; }
.concept-list li {
    background: #fdfdfd; margin: 5px 0; padding: 10px; border-radius: 5px;
    border-left: 3px solid var(--primary-color); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar-widget {
    background: white; padding: 1.5rem; border-radius: 8px;
    margin-bottom: 1.5rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; top: 80px;
}

/* ================= BUTTONS & SOCIAL BOX ================= */
.cta-btn {
    display: inline-block; background: var(--primary-color); color: white;
    padding: 10px 15px; border-radius: 6px; text-decoration: none;
    margin: 10px 10px 10px 0; font-weight: 500; transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.cta-btn:hover { background: #357abd; transform: translateY(-2px); }

.social-box {
    background: linear-gradient(135deg, #f9f9f9, #eef2f5);
    border-left: 5px solid #4A90E2; padding: 20px; border-radius: 10px;
    margin: 25px auto; max-width: 1100px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.social-box h3 { margin-top: 0; margin-bottom: 5px; color: #333; font-size: 1.4rem; border: none; }
.social-box p { color: #666; font-size: 0.95rem; margin-bottom: 20px;}

.social-buttons a {
    display: inline-block; margin: 8px; padding: 12px 20px; border-radius: 8px;
    text-decoration: none; color: white; font-weight: bold; transition: transform 0.2s, box-shadow 0.2s;
}
.social-buttons a:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.15); }

.insta-btn { background: linear-gradient(45deg, #e1306c, #fd1d1d, #fcb045); }
.yt-btn { background: #ff0000; }
.telegram-btn { background: #0088cc; }

/* ================= ADVERTISEMENTS ================= */
.ad-placeholder {
    background-color: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 12px;
    color: #94a3b8; font-weight: 600; text-align: center; display: flex;
    align-items: center; justify-content: center; margin: 2rem 0; padding: 1rem;
    min-height: 100px; letter-spacing: 1px; text-transform: uppercase; font-size: 0.9rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); transition: background-color 0.3s;
}
.ad-placeholder:hover { background-color: #f1f5f9; }
.in-content-ad { height: 100px; margin-top: 20px; margin-bottom: 20px; }

/* ================= INDEX / HERO SECTION ================= */
.hero {
    text-align: center; padding: 4rem 1rem;
    background: linear-gradient(135deg, #4A90E2 0%, #0072ff 100%); color: white;
}
.hero h1 { margin-bottom: 1rem; color: white; font-size: 2.5rem; border: none; }
.search-box { margin-top: 1.5rem; }
.search-box input {
    padding: 12px 20px; width: 80%; max-width: 400px; border-radius: 25px;
    border: none; font-size: 1rem; outline: none; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container { max-width: 1100px; margin: 0 auto; padding: 3rem 1rem; }
.section-title { text-align: center; margin-bottom: 2rem; color: var(--text-dark); border: none; }

/* ================= DASHBOARD & GRIDS ================= */
.dashboard-container {
    max-width: 1200px; margin: 2rem auto; padding: 0 1rem;
    display: grid; grid-template-columns: 250px 1fr; gap: 2rem;
}

.sidebar h3 { color: var(--text-dark); margin-top: 0; border: none; }
.subject-btn {
    display: block; width: 100%; text-align: left; padding: 10px 15px; margin-bottom: 10px;
    background: #f8f9fa; border: none; border-radius: 8px; cursor: pointer;
    font-weight: 600; color: #555; transition: all 0.2s;
}
.subject-btn:hover, .subject-btn.active { background: var(--primary-color); color: white; }

.content-area {
    background: white; padding: 2rem; border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); min-height: 500px;
}

.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; padding: 2rem; border-radius: 12px; margin-bottom: 2rem;
}
.welcome-banner h2 { margin: 0 0 10px 0; color: white; border: none; }

.class-grid, .grid-container, .chapter-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; margin-top: 1.5rem;
}

/* ================= CARDS (Classes & Chapters) ================= */
.class-card, .card, .chapter-card, .note-card {
    background: white; padding: 1.5rem; border-radius: 12px; text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer; display: flex; flex-direction: column; justify-content: center;
    text-decoration: none; color: var(--text-dark); border: 1px solid #eee; position: relative; overflow: hidden;
}
.class-card { padding: 2rem; border-bottom: 4px solid var(--primary-color); }
.card::before, .chapter-card::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--primary-color);
}
.class-card:hover, .card:hover, .chapter-card:hover, .note-card:hover {
    transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); border-color: var(--primary-color);
}

.class-card h3 { margin: 0; font-size: 1.5rem; color: var(--primary-color); }
.class-card p, .card p, .chapter-card span { color: #666; margin-top: 0.5rem; font-size: 0.95rem; }
.card h4, .chapter-card h4 { margin: 0; font-size: 1.1rem; color: var(--text-dark); }

/* Badges */
.badge { display: inline-block; padding: 4px 8px; font-size: 0.75rem; border-radius: 4px; margin-top: 10px; align-self: flex-start; font-weight: bold; }
.badge.ready { background: #e8f5e9; color: var(--success-color); }
.badge.soon { background: #fff3e0; color: #d35400; border: 1px solid #ffe0b2; }
.badge.hot { background: #fee2e2; color: #e53e3e; }

/* Disabled Elements */
.disabled-card, .disabled-link { opacity: 0.65; cursor: default; pointer-events: none; }
.disabled-card:hover { transform: none; box-shadow: none; border-color: #eee; }
.disabled-card::before { background: #ccc; }

/* Toggle Views */
.stream-view, .chapter-view { display: none; }
.active-view { display: block; }
.section-header { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; margin-top: 30px; color: var(--primary-color); font-size: 1.5rem; }
.section-header:first-of-type { margin-top: 0; }
.back-btn { background: #eee; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; color: #333; margin-bottom: 1.5rem; transition: background 0.2s; }
.back-btn:hover { background: #ddd; }

/* ================= RESOURCES ACCORDION ================= */
.accordion-btn {
    background-color: #f8f9fa; color: #333; cursor: pointer; padding: 18px 20px; width: 100%;
    border: 1px solid #e0e0e0; border-left: 5px solid var(--primary-color); text-align: left;
    outline: none; font-size: 1.2rem; font-weight: bold; border-radius: 8px; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease;
}
.accordion-btn:hover, .accordion-btn.active { background-color: var(--primary-color); color: white; border-left-color: var(--accent-color); }
.accordion-content {
    padding: 20px; display: none; background-color: white; margin-bottom: 20px; border: 1px solid #eee;
    border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.chapter-links { list-style: none; padding: 0; margin: 0; }
.chapter-links li { margin-bottom: 8px; }
.chapter-links a {
    text-decoration: none; color: #555; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: #fdfdfd; border: 1px solid #eee; border-radius: 6px; transition: 0.2s;
}
.chapter-links a:hover { background: #fff; color: var(--primary-color); transform: translateX(5px); border-color: var(--primary-color); }

/* ================= ABOUT US PAGE ================= */
.about-header { text-align: center; margin-bottom: 3rem; }
.about-header h1 { font-size: 2.8rem; margin-bottom: 0.5rem; color: var(--primary-color); border: none; }
.mission-statement { font-size: 1.2rem; color: #555; max-width: 750px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-align: center; border-top: 5px solid var(--primary-color); transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-8px); }
.feature-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.story-section { background: white; padding: 3rem; border-radius: 12px; margin-top: 4rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-left: 5px solid var(--accent-color); }
        /* Word Meaning Table */
        .word-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }
        .word-table th, .word-table td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
        }
        .word-table th {
            background-color: var(--primary-color);
            color: white;
        }
        .word-table tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        /* FAQ Section */
        .faq-item {
            margin-bottom: 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            padding: 10px;
        }
        .faq-question {
            font-weight: bold;
            color: var(--sst-color);
            cursor: pointer;
        }
        .faq-answer {
            margin-top: 5px;
            color: #555;
        }
        /* ==========================================
   DPP UNLOCKER & INTERACTIVE FAQ STYLES
   ========================================== */
.dpp-wrapper { background: white; border-radius: 15px; padding: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.08); margin-top: 3rem; margin-bottom: 2rem; border-top: 5px solid #3498db; position: relative; overflow: hidden; }
.dpp-gatekeeper { background: #f4f9fd; border-radius: 12px; padding: 1.5rem; border: 2px dashed #3498db; text-align: center; margin-bottom: 2rem; transition: all 0.5s ease; }
.dpp-gatekeeper h3 { margin-top: 0; color: #2980b9; }
.mcq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.mcq-btn { background: white; border: 2px solid #bdc3c7; border-radius: 8px; padding: 12px; font-size: 1rem; font-weight: bold; color: #333; cursor: pointer; transition: 0.3s; }
.mcq-btn:hover { border-color: #3498db; background: #ebf5fb; }
.mcq-btn.correct { background: #2ecc71; color: white; border-color: #27ae60; pointer-events: none; }
.mcq-btn.wrong { background: #e74c3c; color: white; border-color: #c0392b; animation: shake 0.4s; }
.dpp-locked-content { filter: blur(8px); pointer-events: none; opacity: 0.5; transition: all 0.8s ease-in-out; }
.dpp-locked-content.unlocked { filter: blur(0); pointer-events: auto; opacity: 1; }
#dpp-success-msg { display: none; background: #eaffea; color: #2ecc71; padding: 15px; border-radius: 8px; font-weight: bold; text-align: center; border: 2px solid #2ecc71; margin-bottom: 15px; }

@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* Accordion FAQ Styles */
.faq-accordion { background: white; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; overflow: hidden; transition: all 0.3s; }
.faq-accordion summary { padding: 15px; font-weight: bold; color: #333; background: #f9f9f9; cursor: pointer; outline: none; list-style: none; position: relative; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: '+'; position: absolute; right: 15px; font-size: 1.2rem; color: #888; }
.faq-accordion[open] summary::after { content: '-'; }
.faq-accordion .faq-answer { padding: 15px; border-top: 1px solid #eee; color: #555; line-height: 1.6; }
/* 🔥 DARK MODE STYLES 🔥 */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-theme .content-card, 
.dark-theme header, 
.dark-theme .sidebar, 
.dark-theme .answer-box, 
.dark-theme .dpp-gatekeeper {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    box-shadow: none;
}

.dark-theme h1, .dark-theme h2, .dark-theme h3 {
    color: #ffffff;
}

.dark-theme a.cta-btn {
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.dark-theme .faq-accordion {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.dark-theme .mcq-btn {
    background-color: #2d2d2d;
    color: #fff;
    border-color: #555;
}

.dark-theme .mcq-btn:hover {
    background-color: #444;
}
/* =========================================================
   SPECIAL CSS FOR NESTED ACCORDIONS, BOXES & BADGES
   ========================================================= */
.acc-main {
    background-color: var(--primary-color); color: white; border: none; border-radius: 8px;
    padding: 16px 20px; font-size: 1.2rem; font-weight: bold; width: 100%; text-align: left;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px rgba(74, 144, 226, 0.2); margin-bottom: 0; z-index: 2; position: relative; margin-top: 15px;
}

.acc-panel-grid {
    display: none; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
    padding: 25px 20px; border: 1px solid #e0e0e0; border-top: none; border-radius: 0 0 8px 8px;
    background: white; margin-bottom: 20px; margin-top: -5px; 
}

.stream-header { font-size: 1.2rem; color: #333; margin-top: 0; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }

.acc-inner {
    background-color: var(--primary-color); color: white; border: none; border-radius: 6px;
    padding: 12px 15px; font-size: 1.05rem; font-weight: bold; width: 100%; text-align: left;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; transition: background-color 0.2s;
}
.acc-inner:hover { background-color: #357abd; }

.acc-inner-panel {
    display: none; padding: 15px; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 15px; background: #fafcff; 
}

.ex-card {
    display: flex; justify-content: space-between; align-items: center; background: white;
    border: 1px solid #eaeaea; padding: 12px 15px; border-radius: 6px; text-decoration: none;
    color: #555; margin-bottom: 8px; transition: all 0.2s ease; font-size: 0.95rem; font-weight: 500;
}
.ex-card:hover { border-color: var(--primary-color); transform: translateX(4px); box-shadow: 0 2px 5px rgba(0,0,0,0.05); color: var(--primary-color); }

.ex-title { font-size: 0.9rem; color: #666; font-weight: bold; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.inner-acc-btn { padding: 12px 15px; font-size: 1rem; margin-top: 5px; margin-bottom: 0px; background-color: #f1f5f9; color:#333; border-left: 4px solid var(--primary-color);}
.inner-content { border: none; box-shadow: none; padding: 10px 0 10px 15px; margin-bottom: 0; background: transparent; }
/* =========================================================
   PDF VIEWER STYLES (BYJU'S STYLE)
   ========================================================= */
.pdf-container {
    width: 100%;
    background-color: #f1f5f9;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.pdf-viewer-frame {
    width: 100%;
    height: 75vh; /* Covers 75% of screen height */
    min-height: 600px;
    border: none;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .pdf-viewer-frame {
        height: 60vh;
        min-height: 400px;
    }
}
/* =========================================================
   CUET SYLLABUS TABLE STYLES (MATCHING EXACT IMAGE)
   ========================================================= */
.cuet-title-container {
    text-align: center;
    margin: 2rem 0;
}

.cuet-main-title {
    font-size: 2rem;
    color: #000;
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
    border: none;
}

/* The Orange Underline */
.cuet-main-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: #f5a623;
    bottom: -10px;
    left: 20%;
}

.cuet-table-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Dark Grey Top Bar */
.cuet-header-bar {
    background-color: #4a4a4a;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 12px 20px;
}

.cuet-table {
    width: 100%;
    border-collapse: collapse;
}

/* Orange Column Headers */
.cuet-table th {
    background-color: #f5a623;
    color: #000;
    font-weight: bold;
    text-align: left;
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
}

.cuet-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 0.95rem;
}

/* Make links fill the cell and look normal */
.cuet-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.cuet-link:hover {
    text-decoration: underline;
}

/* Red Subject Name */
.cuet-subject-name {
    color: #d0021b;
    font-weight: bold;
}
/* =========================================
   LOCKED PDF UI (BLUR EFFECT)
   ========================================= */
.locked-pdf-wrapper {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    background: #fff;
    border: 1px solid #ddd;
}

.pdf-preview-img {
    width: 100%;
    height: auto;
    display: block;
    /* Yeh property image ke neeche wale hisse ko blur karti hai */
    filter: blur(2px); 
    opacity: 0.8;
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; /* Niche se 70% hissa cover karega */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.4) 60%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lock-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); /* Apple style glass effect */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 400px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
/* =========================================
   🌙 EXAMSPARK DARK MODE 
   ========================================= */
body.dark-mode {
    --bg-color: #121212;
    --text-dark: #e0e0e0;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* Make Cards and Header Dark */
body.dark-mode header,
body.dark-mode .content-card,
body.dark-mode .sidebar,
body.dark-mode .contact-card,
body.dark-mode .success-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
    box-shadow: 0 4px 15px rgba(255,255,255,0.02) !important;
}

/* Fix text colors inside dark mode */
body.dark-mode p, 
body.dark-mode li, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode label {
    color: #e0e0e0 !important;
}

/* Forms in Dark Mode */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: #2d2d2d;
    color: white;
    border: 1px solid #444;
}

/* Floating Toggle Button Style */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Kept on left so it doesn't clash with WhatsApp/Chat widgets */
    background: #2c3e50;
    color: #f1c40f;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.3s ease;
}
#theme-toggle:hover {
    transform: scale(1.1);
}
/* =========================================
   🌙 EXAMSPARK DARK MODE (FINAL MASTER VERSION)
   ========================================= */
body.dark-mode {
    --bg-color: #121212;
    --text-dark: #e0e0e0;
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* Core Layout Elements */
body.dark-mode header,
body.dark-mode .content-card,
body.dark-mode .contact-card,
body.dark-mode .success-container {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
    box-shadow: none !important;
}

/* ALL Specific Boxes (Answers, Sidebars, Ads, DPP, Social) */
body.dark-mode .answer-box,
body.dark-mode .sidebar-widget,
body.dark-mode .ad-placeholder,
body.dark-mode .concept-list li,
body.dark-mode .info-box,
body.dark-mode .dpp-wrapper,
body.dark-mode .dpp-gatekeeper,
body.dark-mode .social-box {
    background-color: #262626 !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
    box-shadow: none !important;
}

/* Social Box Special Gradient */
body.dark-mode .social-box {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a) !important;
}

/* Text Colors inside Boxes */
body.dark-mode .answer-box p,
body.dark-mode .answer-box li,
body.dark-mode .answer-box b,
body.dark-mode .answer-box strong,
body.dark-mode .social-box h3,
body.dark-mode .social-box p {
    color: #e0e0e0 !important;
}

/* General Text Fixes */
body.dark-mode p, 
body.dark-mode li, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode label {
    color: #e0e0e0 !important;
}
body.dark-mode .sidebar-widget h3 {
    color: #4A90E2 !important; /* ExamSpark Blue */
}

/* Forms */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    background: #2d2d2d;
    color: white;
    border: 1px solid #444;
}

/* Floating Toggle Button */
#theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #2c3e50;
    color: #f1c40f;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.3s ease;
}
#theme-toggle:hover {
    transform: scale(1.1);
}
body.dark-mode #ai-chat-container { background: #1e1e1e !important; border-color: #444 !important; }
body.dark-mode #ai-chat-messages { background: #121212 !important; }