   
        /* ==========================================================================
           CSS Variables & Reset
           ========================================================================== */
        :root {
            --primary-color: #0067f6;   
            --primary-hover: #0056b3;
            --bg-light: #f8f9fa;
            --bg-white: #ffffff;
            --text-dark: #333333;
            --text-muted: #6c757d;
            --border-color: #e9ecef;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg-white);
            color: var(--text-dark);
            height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: hidden; /* Prevent body scroll, handle scroll in child elements */
        }

        /* ==========================================================================
           Navbar Styles
           ========================================================================== */
        .navbar {
            position: sticky;
            top: 0;
            background-color: var(--bg-light);
            border-bottom: 1px solid var(--border-color);
            padding: 0.75rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100;
            box-shadow: var(--shadow-sm);
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .nav-links {
            display: flex;
            gap: 1.5rem;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 500;
            transition: var(--transition);
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .nav-right {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        select {
            padding: 0.5rem;
            border: 1px solid var(--border-color);
            border-radius: 4px;
            background-color: var(--bg-white);
            color: var(--text-dark);
            font-size: 0.9rem;
            cursor: pointer;
            outline: none;
            transition: border-color 0.2s;
        }

        select:focus {
            border-color: var(--primary-color);
        }

        /* ==========================================================================
           Main Layout (Dashboard Container)
           ========================================================================== */
        .dashboard-container {
            display: flex;
            flex: 1;
            overflow: hidden; /* Contains the scrollable children */
        }

        /* ==========================================================================
           Sidebar (Subtopics List)
           ========================================================================== */
        .sidebar {
            width: 300px;
            background-color: var(--bg-white);
            border-right: 1px solid var(--border-color);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .sidebar-header {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            background-color: var(--bg-light);
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            font-size: 0.8rem;
            letter-spacing: 0.5px;
        }

        .topic-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .topic-item {
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: var(--transition);
            border-left: 4px solid transparent;
            font-weight: 500;
        }

        .topic-item:hover {
            background-color: #f1f3f5;
        }

        .topic-item.active {
            background-color: #e7f1ff;
            border-left-color: var(--primary-color);
            color: var(--primary-color);
        }

        /* ==========================================================================
           Main Content Area (Action Panel)
           ========================================================================== */
        .content-area {
            flex: 1;
            padding: 2rem;
            background-color: var(--bg-white);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .placeholder-text {
            color: var(--text-muted);
            font-size: 1.2rem;
            text-align: center;
        }

        .action-panel-content {
            width: 100%;
            max-width: 800px;
            animation: fadeIn 0.4s ease;
        }

        .action-header {
            margin-bottom: 2rem;
            text-align: center;
            color: var(--text-dark);
            font-size: 2rem;
        }

        .action-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
        }

        .action-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 2.5rem 1.5rem;
            background-color: var(--bg-light);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            text-decoration: none;
            color: var(--text-dark);
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
            text-align: center;
        }

        .action-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .action-card i {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }

        .action-card span {
            font-weight: 600;
            font-size: 1.1rem;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ==========================================================================
           Responsive Design
           ========================================================================== */
        @media (max-width: 768px) {
            .navbar {
                flex-direction: column;
                gap: 1rem;
                padding: 1rem;
            }
            .nav-left {
                flex-direction: column;
                width: 100%;
                text-align: center;
            }
            .nav-right {
                width: 100%;
                justify-content: center;
            }
            .dashboard-container {
                flex-direction: column;
                overflow-y: auto;
            }
            .sidebar {
                width: 100%;
                border-right: none;
                border-bottom: 1px solid var(--border-color);
                max-height: 250px; /* Keep sidebar small on mobile */
            }
            .content-area {
                padding: 1.5rem;
            }
            body {
                overflow: auto; /* Allow body scroll on mobile */
            }
        }
        /* =========================================
   Sidebar Language Controls
   ========================================= */
.language-controls {
    padding: 15px 20px;
    background-color: var(--light-bg);
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 10px;
}

.control-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.styled-select {
    width: 100%;                  /* NEW: Keeps it contained */
    box-sizing: border-box;       /* NEW: Accounts for padding */
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    color: var(--text-dark);
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.styled-select:focus, .styled-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 103, 246, 0.2);
}

/* =========================================
   Video Modal Styling
   ========================================= */
.modal {
    position: fixed;
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Dark overlay */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.close-btn {
    color: #999;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover { color: #ff4d4d; }

.video-container {
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
   /* =========================================
   Document Modal Specifics
   ========================================= */
.doc-modal-content {
    max-width: 600px; /* Thinner than video for better reading */
}

.doc-container {
    text-align: left;
    line-height: 1.8;
    color: #444;
    max-height: 60vh; /* Prevents it from going off screen */
    overflow-y: auto; /* Adds a scrollbar if text is long */
    padding-right: 15px;
}

.doc-container h4 { color: var(--text-dark); margin-top: 15px; }
.doc-container p { margin-bottom: 15px; }
.doc-container pre { 
    background-color: #f1f3f5; 
    padding: 10px; 
    border-radius: 5px; 
    overflow-x: auto;
    font-family: monospace;
    border-left: 4px solid var(--primary-color);
}
/* =========================================
   Podcast Modal Specifics
   ========================================= */
.podcast-modal-content {
    max-width: 400px; /* Small, compact width for the audio player */
    border-top: 5px solid var(--primary-color);
}

.audio-container audio {
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
