/* assets/css/style.css - BioEdu Complete Design System & Flower Bioluminescent Animations */

:root {
    /* Color Palette */
    --bg-dark: #060e0a;
    --bg-card: rgba(12, 26, 19, 0.85);
    --border-color: rgba(52, 211, 153, 0.22);
    --primary: #10b981;
    --primary-hover: #059669;
    --accent-cyan: #06b6d4;
    --accent-amber: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(6, 14, 10, 0.9);

    /* Glassmorphism & Shadow */
    --glass-backdrop: blur(16px);
    --shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.4);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

[data-theme="light"] {
    --bg-dark: #f0fdf4;
    --bg-card: rgba(255, 255, 255, 0.92);
    --border-color: rgba(16, 185, 129, 0.3);
    --primary: #059669;
    --primary-hover: #047857;
    --accent-cyan: #0891b2;
    --accent-amber: #d97706;
    --accent-red: #dc2626;
    --text-white: #0f172a;
    --text-muted: #475569;
    --input-bg: #ffffff;
    --glass-backdrop: blur(12px);
    --shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    /* FULL BODY FIX BACKGROUND PATTERN */
    background-image: 
        linear-gradient(180deg, rgba(6, 14, 10, 0.88) 0%, rgba(6, 14, 10, 0.95) 100%),
        url('../images/full_bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

[data-theme="light"] body {
    background-image: 
        linear-gradient(180deg, rgba(240, 253, 244, 0.88) 0%, rgba(240, 253, 244, 0.96) 100%),
        url('../images/full_bg.jpg');
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   BIOLUMINESCENT FLOWER LOADER ANIMATION SYSTEM (GULSIMON LOADER)
   ========================================================================== */
@keyframes flowerSpinZoom {
    0% {
        transform: rotate(0deg) scale(0.82);
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
    }
    50% {
        transform: rotate(180deg) scale(1.22);
        filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.95));
    }
    100% {
        transform: rotate(360deg) scale(0.82);
        filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
    }
}

@keyframes flowerCenterPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
    }
    50% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.75);
    }
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

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

/* Page Overlay Flower Loader */
.page-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 10, 0.92);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.flower-loader-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flower-svg-icon {
    width: 90px;
    height: 90px;
    animation: flowerSpinZoom 2.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.flower-center-dot {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle, #34d399 0%, #10b981 70%, #06b6d4 100%);
    box-shadow: 0 0 18px #34d399;
    animation: flowerCenterPulse 1.8s ease-in-out infinite;
}

/* Card Inline Flower Loader Overlay */
.card-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 10, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.flower-spin-sm {
    width: 32px;
    height: 32px;
    animation: flowerSpinZoom 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Navbar System */
.navbar {
    background: rgba(6, 14, 10, 0.92);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.92);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-logo:hover {
    transform: scale(1.05);
}

.brand-logo i {
    transition: transform 0.4s ease;
}

.brand-logo:hover i {
    transform: rotate(180deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.theme-toggle-btn:hover {
    transform: rotate(45deg) scale(1.12);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.6);
}

/* ==========================================================================
   UNIVERSAL BUTTON ANIMATION & HOVER SHIMMER SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.72rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
    outline: none;
    position: relative;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    background-image: url('../images/btn_pattern.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    z-index: 2;
    pointer-events: none;
}

.btn:hover::before {
    left: 160%;
}

.btn-primary {
    background-color: rgba(16, 185, 129, 0.82);
    background-image: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.88) 0%, rgba(6, 182, 212, 0.88) 100%),
        url('../images/btn_pattern.jpg');
    background-blend-mode: overlay;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.8);
    border-color: #ffffff;
    filter: brightness(1.15);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-outline {
    background-color: rgba(6, 14, 10, 0.75);
    background-image: 
        linear-gradient(135deg, rgba(6, 14, 10, 0.82) 0%, rgba(12, 26, 19, 0.82) 100%),
        url('../images/btn_pattern.jpg');
    background-blend-mode: overlay;
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #ffffff !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-outline:hover {
    transform: translateY(-4px) scale(1.03);
    background-image: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(6, 182, 212, 0.45) 100%),
        url('../images/btn_pattern.jpg');
    border-color: #10b981;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.84rem;
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.85);
    background-image: 
        linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%),
        url('../images/btn_pattern.jpg');
    background-blend-mode: overlay;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.btn-success {
    background-color: rgba(16, 185, 129, 0.85);
    background-image: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%),
        url('../images/btn_pattern.jpg');
    background-blend-mode: overlay;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* Full Width Hero Banner */
.hero-fullwidth {
    width: 100%;
    margin: 0;
    padding: 4.5rem 1.5rem;
    background: 
        linear-gradient(180deg, rgba(6, 14, 10, 0.4) 0%, rgba(6, 14, 10, 0.92) 100%),
        url('../images/hero_wide.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    box-shadow: inset 0 -20px 50px rgba(6, 14, 10, 0.8);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content Area */
.main-content {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
}

/* Filter Pills */
.filter-bar {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    scrollbar-width: thin;
}

.filter-pill {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: var(--glass-backdrop);
}

.filter-pill:hover, .filter-pill.active {
    transform: translateY(-2px) scale(1.05);
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Floating & Glowing Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.badge-free {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.badge-paid {
    background: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-on {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.badge-off {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.badge-admin {
    background: rgba(6, 182, 212, 0.25);
    color: #38bdf8;
}

/* CARDS 3D GLOW & IMAGE ZOOM HOVER SYSTEM */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.course-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    animation: cardFadeInUp 0.6s ease backward;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}

.course-card:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 20px 45px rgba(16, 185, 129, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.course-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.course-card:hover .course-thumb {
    transform: scale(1.08);
}

.course-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 0.78rem;
    color: var(--accent-cyan);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.course-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.course-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Video Player Watch Section */
.watch-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.8rem;
}

@media (max-width: 992px) {
    .watch-container {
        grid-template-columns: 1fr;
    }
}

.video-wrapper {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow);
}

.video-wrapper iframe, .video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-locked-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 10, 0.94);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.video-locked-overlay i {
    font-size: 3.5rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
    animation: floatBadge 3s ease-in-out infinite;
}

.interaction-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.2rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    backdrop-filter: var(--glass-backdrop);
}

.like-btn {
    background-color: rgba(16, 185, 129, 0.15);
    background-image: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%),
        url('../images/btn_pattern.jpg');
    background-blend-mode: overlay;
    background-position: center;
    background-size: cover;
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.like-btn:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.like-btn.liked {
    background-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-color: var(--accent-red);
}

.comments-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    backdrop-filter: var(--glass-backdrop);
}

.comment-input-box {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
}

/* Playlist Card */
.playlist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    backdrop-filter: var(--glass-backdrop);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.playlist-item:hover, .playlist-item.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
    transform: translateX(4px);
}

.playlist-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    flex: 1;
}

/* ADMIN LAYOUT SYSTEM */
.admin-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.admin-grid > section, .admin-grid > aside {
    min-width: 0;
}

@media (max-width: 992px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    backdrop-filter: var(--glass-backdrop);
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.admin-menu-item a:hover, .admin-menu-item a.active {
    background: var(--primary);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    backdrop-filter: var(--glass-backdrop);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(8deg);
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* RESPONSIVE TABLE CONTAINER */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 2rem;
    backdrop-filter: var(--glass-backdrop);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}
.table-container::-webkit-scrollbar-track {
    background: rgba(6, 14, 10, 0.5);
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4);
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
    min-width: 650px;
}

.table th, .table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    transition: background 0.2s ease;
}

.table th {
    background: rgba(16, 185, 129, 0.08);
    color: var(--text-muted);
    font-weight: 700;
    white-space: nowrap;
}

.table tr:hover td {
    background: rgba(16, 185, 129, 0.07);
}

/* Footer */
.footer {
    background: 
        linear-gradient(180deg, rgba(6, 14, 10, 0.86) 0%, rgba(6, 14, 10, 0.96) 100%),
        url('../images/footer_bg.jpg') center/cover no-repeat;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
    backdrop-filter: var(--glass-backdrop);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .footer {
    background: 
        linear-gradient(180deg, rgba(240, 253, 244, 0.9) 0%, rgba(240, 253, 244, 0.98) 100%),
        url('../images/footer_bg.jpg') center/cover no-repeat;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
