    /* Light Theme (Default) */
    :root,
    [data-theme="light"] {
        /* Core Colors */
        --primary-color: #4F46E5;
        --primary-light: #818CF8;
        --primary-dark: #3730A3;
        --secondary-color: #10B981;

        /* Backgrounds */
        --navbar-bg: #ffffff;
        /* Effects */
        --accent-gradient: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
        --glass-border: 1px solid rgba(0, 0, 0, 0.1);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
        --neon-glow: 0 0 10px rgba(99, 102, 241, 0.3), 0 0 20px rgba(99, 102, 241, 0.2);
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    /* Dark Theme */
    [data-theme="dark"],
    html[data-theme="dark"],
    html[data-theme="dark"] body {
        /* Core Colors */
        --primary-color: #6366F1;
        --primary-light: #818CF8;
        --primary-dark: #4F46E5;
        --secondary-color: #10B981;

        /* Backgrounds */
        --bg-primary: #0F172A !important;
        --bg-secondary: #1E293B !important;
        --bg-tertiary: #334155 !important;
        --card-bg: rgba(30, 41, 59, 0.7) !important;
        --card-hover-bg: rgba(30, 41, 59, 0.9) !important;
        --navbar-bg: #0F172A !important;
        --sidebar-bg: #0F172A !important;
        --footer-bg: #0F172A !important;
        --hover-bg: rgba(255, 255, 255, 0.05) !important;
        --hover-bg-strong: rgba(255, 255, 255, 0.1) !important;

        /* Text Colors */
        --text-primary: #F8FAFC !important;
        --text-secondary: #CBD5E1 !important;
        --text-muted: #94A3B8 !important;
        --text-light: #F8FAFC !important;
        --text-inverse: #0F172A !important;
        --sidebar-text: #F8FAFC !important;

        /* Borders */
        --border-color: rgba(255, 255, 255, 0.1) !important;
        --border-hover: rgba(255, 255, 255, 0.2) !important;

        /* Effects */
        --accent-gradient: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
        --glass-border: 1px solid rgba(255, 255, 255, 0.1);
        --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        --neon-glow: 0 0 10px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
    
    /* Ensure body background updates in dark theme */
    html[data-theme="dark"] body,
    [data-theme="dark"] body {
        background-color: var(--bg-primary, #0F172A) !important;
        color: var(--text-primary, #F8FAFC) !important;
    }

    body {
        font-family: 'Outfit', sans-serif;
        background-color: var(--bg-primary, #ffffff);
        color: var(--text-primary, #384551);
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        transition: background-color 0.3s ease, color 0.3s ease;

        /* Overrides for Bootstrap Utilities */
        .text-primary {
            color: var(--text-primary) !important;
        }

        .text-muted {
            color: var(--text-muted) !important;
        }

        .bg-light {
            background-color: var(--bg-secondary) !important;
        }

        .bg-white {
            background-color: #fff !important;
        }

        .border {
            border-color: var(--border-color) !important;
        }

        .btn-outline-primary {
            color: var(--primary-light);
            border-color: var(--primary-light);
        }

        .btn-outline-primary:hover {
            background-color: var(--primary-light);
            border-color: var(--primary-light);
            color: #fff;
        }

        /* Navbar */
        .bg-dark-custom {
            background-color: var(--navbar-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: var(--glass-border);
            box-shadow: var(--shadow-md);
        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: 700;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        .text-primary-custom {
            color: var(--text-primary) !important;
        }

        .nav-link {
            color: var(--text-muted) !important;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-link:hover,
        .nav-link.active {
            color: var(--text-light) !important;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background: var(--accent-gradient);
            transition: width 0.3s ease, left 0.3s ease;
        }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
            left: 0;
        }

        /* Auth Pages */
        .auth-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 80vh;
            padding: 2rem;
        }

        .auth-card {
            background: var(--card-bg);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            padding: 2.5rem;
            border-radius: 1.5rem;
            width: 100%;
            max-width: 450px;
            box-shadow: var(--glass-shadow);
            border: var(--glass-border);
        }

        .auth-card h2 {
            font-weight: 700;
            margin-bottom: 0.5rem;
            text-align: center;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .auth-subtitle {
            color: var(--text-muted);
            text-align: center;
            margin-bottom: 2rem;
        }

        .form-control {
            background-color: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            background-color: var(--bg-tertiary);
            border-color: var(--primary-light);
            color: var(--text-primary);
            box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15);
        }

        .btn-primary {
            background: var(--accent-gradient);
            color: #ffffff !important;
            border: none;
            padding: 0.75rem;
            font-weight: 600;
            border-radius: 0.75rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .btn-primary i,
        .btn-primary .bi,
        .btn-primary svg {
            color: #ffffff !important;
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #4F46E5 0%, #D946EF 100%);
            z-index: -1;
            transition: opacity 0.3s ease;
            opacity: 0;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
            color: #ffffff !important;
        }
        
        .btn-primary:hover i,
        .btn-primary:hover .bi,
        .btn-primary:hover svg {
            color: #ffffff !important;
        }

        .btn-primary:hover::before {
            opacity: 1;
        }

        .auth-footer {
            margin-top: 1.5rem;
            text-align: center;
            font-size: 0.9rem;
        }

        .auth-footer a {
            color: var(--primary-light);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .auth-footer a:hover {
            color: #A5B4FC;
            text-decoration: underline;
        }

        /* Footer */
        .footer-custom {
            background-color: var(--footer-bg);
            border-top: var(--glass-border);
            backdrop-filter: blur(10px);
            width: 100%;
            margin-top: auto;
            overflow-x: visible;
            word-wrap: break-word;
            min-width: 0;
        }
        
        .footer-custom .container-fluid {
            max-width: 100%;
            overflow-x: visible;
            padding-left: 1rem;
            padding-right: 1rem;
        }
        
        .footer-custom a {
            white-space: nowrap;
        }

        /* General Utilities */
        .text-gradient {
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .card {
            background: #fff !important;
            backdrop-filter: blur(12px);
            border: var(--glass-border);
            border-radius: 1rem;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card:hover {
            transform: translateY(-5px);
            background: #fff !important;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Hero Section */
        .hero-section {
            padding: 6rem 0;
            text-align: center;
            background: radial-gradient(circle at center, rgba(79, 70, 229, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
            position: relative;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.5;
            z-index: -1;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            line-height: 1.1;
            background: linear-gradient(to right, #fff, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--text-muted);
            max-width: 700px;
            margin: 0 auto 2.5rem;
            line-height: 1.6;
        }

        /* Video Card */
        .video-card {
            position: relative;
            border-radius: 1rem;
            overflow: hidden;
            aspect-ratio: 16/9;
            background-color: #000;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .video-card:hover {
            transform: scale(1.03);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            border-color: rgba(129, 140, 248, 0.3);
        }

        .video-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.9;
            transition: opacity 0.3s ease, transform 0.5s ease;
        }

        .video-card:hover img {
            opacity: 0.7;
            transform: scale(1.05);
        }

        /* Video Preview Styles */
        .video-card .preview-video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            background-color: #000;
        }

        .video-card:hover .preview-video {
            opacity: 1;
        }

        .video-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1.5rem;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
            transform: translateY(10px);
            transition: transform 0.3s ease;
        }

        .video-card:hover .video-info {
            transform: translateY(0);
        }

        .video-title {
            font-weight: 700;
            margin-bottom: 0.5rem;
            font-size: 1.1rem;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .video-meta {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .category-badge {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: rgba(15, 23, 42, 0.7);
            backdrop-filter: blur(4px);
            padding: 0.35rem 0.85rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-light);
        }

        /* Video Player Styles */
        .video-player-container {
            background-color: #000;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .video-player {
            width: 100%;
            max-height: 75vh;
            background-color: #000;
            outline: none;
        }

        .video-details {
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            border: var(--glass-border);
            border-radius: 1rem;
            margin-top: 1.5rem;
            padding: 1.5rem;
        }

        .video-description {
            color: var(--text-muted);
            line-height: 1.7;
            font-size: 1rem;
        }

        .creator-info .avatar-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--accent-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.2rem;
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.1);
        }

        .comments-section {
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            border: var(--glass-border);
            border-radius: 1rem;
            margin-top: 1.5rem;
            padding: 1.5rem;
        }

        .comment-item {
            transition: background-color 0.2s ease;
            padding: 1rem;
            border-radius: 0.5rem;
        }

        .comment-item:hover {
            background-color: rgba(255, 255, 255, 0.03) !important;
        }

        .avatar-circle-small {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.9rem;
            color: white;
            box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
        }

        .quality-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-muted);
            transition: all 0.2s ease;
            padding: 0.4rem 0.8rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
        }

        .quality-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: var(--primary-light);
            color: white;
        }

        .quality-btn.active {
            background: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
            font-weight: 600;
            box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
        }

        /* Related Videos */
        .related-videos {
            max-height: 80vh;
            overflow-y: auto;
            padding-right: 0.5rem;
        }

        .related-videos::-webkit-scrollbar {
            width: 6px;
        }

        .related-videos::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
        }

        .related-videos::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .related-video-item {
            padding: 0.75rem;
            border-radius: 0.75rem;
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }

        .related-video-item:hover {
            background-color: rgba(255, 255, 255, 0.03);
            border-color: rgba(255, 255, 255, 0.05);
        }

        .related-thumbnail {
            position: relative;
            width: 160px;
            height: 90px;
            border-radius: 0.5rem;
            overflow: hidden;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .related-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        color: var(--text-light);
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sidebar-toggle:hover {
        color: var(--primary-light);
    }

    .side-navbar {
        position: fixed;
        top: 56px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 56px);
        background: var(--sidebar-bg);
        backdrop-filter: blur(12px);
        border-right: var(--glass-border);
        z-index: 1040;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        color: var(--sidebar-text);
    }

    .side-navbar.open {
        left: 0;
    }

    .side-navbar-overlay {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .side-navbar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .side-navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: var(--glass-border);
        position: sticky;
        top: 0;
        background: var(--sidebar-bg);
        z-index: 10;
        transition: background 0.3s ease;
    }

    .side-navbar-header .navbar-brand {
        font-size: 1.25rem;
        margin: 0;
    }

    .btn-close-sidebar {
        background: transparent;
        border: none;
        color: var(--sidebar-text);
        opacity: 0.8;
        font-size: 1.25rem;
        padding: 0.25rem 0.5rem;
        cursor: pointer;
        transition: color 0.3s ease, opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-close-sidebar:hover {
        color: var(--sidebar-text);
        opacity: 1;
    }

    .side-navbar-nav {
        padding: 1rem 0;
    }

    .nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-section-title {
        padding: 0.75rem 1.5rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--sidebar-text);
        opacity: 0.7;
        margin-top: 0.5rem;
    }

    .nav-list .nav-item {
        margin: 0 0.5rem;
    }

    .nav-list .nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--sidebar-text) !important;
        opacity: 0.8;
        text-decoration: none;
        transition: all 0.2s ease;
        border-left: none;
        border-radius: 0.5rem;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .nav-list .nav-link i {
        font-size: 1.25rem;
        width: 24px;
        margin-right: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .nav-list .nav-link:hover {
        background-color: var(--hover-bg);
        color: var(--sidebar-text) !important;
        opacity: 1;
        transform: translateX(4px);
    }

    .nav-list .nav-link:hover i {
        color: var(--primary-light);
        transform: scale(1.1);
    }

    .nav-list .nav-link.active {
        background: linear-gradient(90deg, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.05) 100%);
        color: var(--primary-light) !important;
        border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .nav-list .nav-link.active i {
        color: var(--primary-light);
    }

    .logout-form {
        margin: 0;
        padding: 0;
    }

    .logout-btn {
        width: 100%;
        background: transparent;
        border: none;
        text-align: left;
        cursor: pointer;
    }

    .logout-btn:hover {
        color: #ef4444 !important;
        background-color: rgba(239, 68, 68, 0.1);
    }

    /* Scrollbar for side navbar */
    .side-navbar::-webkit-scrollbar {
        width: 6px;
    }

    .side-navbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .side-navbar::-webkit-scrollbar-thumb {
        background: var(--hover-bg);
        border-radius: 3px;
    }

    .dropdown-item:hover {
        background-color: var(--hover-bg);
        color: var(--primary-light);
    }

    /* Side Navbar Styles */
    .btn-sidebar-toggle {
        background: transparent;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-sidebar-toggle:hover {
        color: var(--primary-light);
    }

    .side-navbar {
        position: fixed;
        top: 56px;
        left: -280px;
        width: 280px;
        height: calc(100vh - 56px);
        background: var(--sidebar-bg);
        backdrop-filter: blur(12px);
        border-right: var(--glass-border);
        z-index: 1040;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        color: var(--sidebar-text);
    }

    .side-navbar.open {
        left: 0;
    }

    .side-navbar-overlay {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1035;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .side-navbar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .side-navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: var(--glass-border);
        position: sticky;
        top: 0;
        background: var(--sidebar-bg);
        z-index: 10;
        transition: background 0.3s ease;
    }

    .side-navbar-header .navbar-brand {
        font-size: 1.25rem;
        margin: 0;
    }

    .btn-close-sidebar {
        background: transparent;
        border: none;
        color: var(--sidebar-text);
        opacity: 0.8;
        font-size: 1.25rem;
        padding: 0.25rem 0.5rem;
        cursor: pointer;
        transition: color 0.3s ease, opacity 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-close-sidebar:hover {
        color: var(--sidebar-text);
        opacity: 1;
    }

    .side-navbar-nav {
        padding: 1rem 0;
    }

    .nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .nav-section-title {
        padding: 0.75rem 1.5rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--sidebar-text);
        opacity: 0.7;
        margin-top: 0.5rem;
    }

    .nav-list .nav-item {
        margin: 0 0.5rem;
    }

    .nav-list .nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--sidebar-text) !important;
        opacity: 0.8;
        text-decoration: none;
        transition: all 0.2s ease;
        border-left: none;
        border-radius: 0.5rem;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .nav-list .nav-link i {
        font-size: 1.25rem;
        width: 24px;
        margin-right: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .nav-list .nav-link:hover {
        background-color: var(--hover-bg);
        color: var(--sidebar-text) !important;
        opacity: 1;
        transform: translateX(4px);
    }

    .nav-list .nav-link:hover i {
        color: var(--primary-light);
        transform: scale(1.1);
    }

    .nav-list .nav-link.active {
        background: linear-gradient(90deg, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.05) 100%);
        color: var(--primary-light) !important;
        border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .nav-list .nav-link.active i {
        color: var(--primary-light);
    }

    .logout-form {
        margin: 0;
        padding: 0;
    }

    .logout-btn {
        width: 100%;
        background: transparent;
        border: none;
        text-align: left;
        cursor: pointer;
    }

    .logout-btn:hover {
        color: #ef4444 !important;
        background-color: rgba(239, 68, 68, 0.1);
    }

    /* Scrollbar for side navbar */
    .side-navbar::-webkit-scrollbar {
        width: 6px;
    }

    .side-navbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .side-navbar::-webkit-scrollbar-thumb {
        background: var(--hover-bg);
        border-radius: 3px;
    }

    .side-navbar::-webkit-scrollbar-thumb:hover {
        background: var(--hover-bg-strong);
    }

    /* Responsive adjustments */
    @media (min-width: 992px) {
        .side-navbar {
            left: 0;
        }

        .main-content {
            margin-left: 280px;
            transition: margin-left 0.3s ease;
        }

        .side-navbar-overlay {
            display: none;
        }

        .btn-close-sidebar {
            display: none;
        }

        .btn-sidebar-toggle {
            display: none;
        }
    }

    /* Tablet and Mobile Adjustments */
    @media (max-width: 991.98px) {
        .side-navbar {
            left: -280px;
        }

        .main-content {
            margin-left: 0;
        }

        .btn-sidebar-toggle {
            display: flex;
        }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            padding: 0 1rem;
        }

        .hero-section {
            padding: 4rem 0;
        }

        .card {
            margin-bottom: 1rem;
        }
    }

    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
        }

        .hero-section {
            padding: 3rem 0;
        }

        .btn-lg {
            padding: 0.5rem 1.5rem;
            font-size: 1rem;
        }

        .navbar-brand {
            font-size: 1.25rem;
        }

        .video-card {
            border-radius: 0.75rem;
        }
    }

    /* Global Bootstrap Overrides */
    .card {
        background-color: #fff !important;
        border: var(--glass-border);
        color: var(--text-primary);
        backdrop-filter: blur(12px);
    }

    .card-header {
        background-color: var(--hover-bg);
        border-bottom: var(--glass-border);
    }

    .card-footer {
        background-color: var(--hover-bg);
        border-top: var(--glass-border);
    }

    .list-group-item {
        background-color: transparent;
        border-color: var(--border-color);
        color: var(--text-primary);
    }

    .modal-content {
        background-color: var(--bg-primary);
        border: var(--glass-border);
        color: var(--text-primary);
    }

    .modal-header,
    .modal-footer {
        border-color: var(--border-color);
    }

    .close {
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--text-muted) !important;
        text-decoration: none;
        transition: all 0.2s ease;
        border-left: none;
        border-radius: 0.5rem;
        font-weight: 500;
        margin-bottom: 2px;
    }

    .nav-list .nav-link i {
        font-size: 1.25rem;
        width: 24px;
        margin-right: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease;
    }

    .nav-list .nav-link:hover {
        background-color: var(--hover-bg);
        color: var(--sidebar-text) !important;
        opacity: 1;
        transform: translateX(4px);
    }

    .nav-list .nav-link:hover i {
        color: var(--primary-light);
        transform: scale(1.1);
    }

    .nav-list .nav-link.active {
        background: linear-gradient(90deg, rgba(79, 70, 229, 0.15) 0%, rgba(79, 70, 229, 0.05) 100%);
        color: var(--primary-light) !important;
        border: 1px solid rgba(79, 70, 229, 0.2);
    }

    .nav-list .nav-link.active i {
        color: var(--primary-light);
    }

    .logout-form {
        margin: 0;
        padding: 0;
    }

    .logout-btn {
        width: 100%;
        background: transparent;
        border: none;
        text-align: left;
        cursor: pointer;
    }

    .logout-btn:hover {
        color: #ef4444 !important;
        background-color: rgba(239, 68, 68, 0.1);
    }

    /* Scrollbar for side navbar */
    .side-navbar::-webkit-scrollbar {
        width: 6px;
    }

    .side-navbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .side-navbar::-webkit-scrollbar-thumb {
        background: var(--hover-bg);
        border-radius: 3px;
    }

    .side-navbar::-webkit-scrollbar-thumb:hover {
        background: var(--hover-bg-strong);
    }

    /* Responsive adjustments */
    @media (min-width: 992px) {
        .side-navbar {
            left: 0;
        }

        .main-content {
            margin-left: 280px;
            transition: margin-left 0.3s ease;
        }

        .side-navbar-overlay {
            display: none;
        }

        .btn-close-sidebar {
            display: none;
        }

        .btn-sidebar-toggle {
            display: none;
        }
    }

    /* Tablet and Mobile Adjustments */
    @media (max-width: 991.98px) {
        .side-navbar {
            left: -280px;
        }

        .main-content {
            margin-left: 0;
        }

        .btn-sidebar-toggle {
            display: flex;
        }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            padding: 0 1rem;
        }

        .hero-section {
            padding: 4rem 0;
        }

        .card {
            margin-bottom: 1rem;
        }
    }

    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
        }

        .hero-section {
            padding: 3rem 0;
        }

        .btn-lg {
            padding: 0.5rem 1.5rem;
            font-size: 1rem;
        }

        .navbar-brand {
            font-size: 1.25rem;
        }

        .video-card {
            border-radius: 0.75rem;
        }
    }

    /* Global Bootstrap Overrides */
    .card {
        background-color: #fff !important;
        border: var(--glass-border);
        color: var(--text-primary);
        backdrop-filter: blur(12px);
    }

    .card-header {
        background-color: var(--hover-bg);
        border-bottom: var(--glass-border);
    }

    .card-footer {
        background-color: var(--hover-bg);
        border-top: var(--glass-border);
    }

    .list-group-item {
        background-color: transparent;
        border-color: var(--border-color);
        color: var(--text-primary);
    }

    .modal-content {
        background-color: var(--bg-primary);
        border: var(--glass-border);
        color: var(--text-primary);
    }

    .modal-header,
    .modal-footer {
        border-color: var(--border-color);
    }

    .close {
        color: var(--text-primary);
        text-shadow: none;
        opacity: 0.8;
    }

    .close:hover {
        color: var(--text-primary);
        opacity: 1;
    }

    /* Social Feed Styles */
    .stories-container {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .stories-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .story-item {
        cursor: pointer;
        min-width: 70px;
    }

    .story-circle {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        padding: 2px;
        border: 2px solid var(--primary-color);
        transition: transform 0.2s ease;
    }

    .story-item:hover .story-circle {
        transform: scale(1.05);
    }

    .video-feed-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        overflow: visible;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
    }

    .video-feed-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .video-feed-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .video-feed-card .card-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 3.2em;
    }

    .video-thumbnail {
        transition: transform 0.3s ease;
    }

    .video-feed-card:hover .video-thumbnail {
        transform: scale(1.02);
    }

    /* Scrollbar for side navbar */
    .side-navbar::-webkit-scrollbar {
        width: 6px;
    }

    .side-navbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .side-navbar::-webkit-scrollbar-thumb {
        background: var(--hover-bg);
        border-radius: 3px;
    }

    .side-navbar::-webkit-scrollbar-thumb:hover {
        background: var(--hover-bg-strong);
    }

    /* Responsive adjustments */
    @media (min-width: 992px) {
        .side-navbar {
            left: 0;
        }

        .main-content {
            margin-left: 280px;
            transition: margin-left 0.3s ease;
        }

        .side-navbar-overlay {
            display: none;
        }

        .btn-close-sidebar {
            display: none;
        }

        .btn-sidebar-toggle {
            display: none;
        }
    }

    /* Tablet and Mobile Adjustments */
    @media (max-width: 991.98px) {
        .side-navbar {
            left: -280px;
        }

        .main-content {
            margin-left: 0;
        }

        .btn-sidebar-toggle {
            display: flex;
        }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            padding: 0 1rem;
        }

        .hero-section {
            padding: 4rem 0;
        }

        .card {
            margin-bottom: 1rem;
        }
    }

    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
        }

        .hero-section {
            padding: 3rem 0;
        }

        .btn-lg {
            padding: 0.5rem 1.5rem;
            font-size: 1rem;
        }

        .navbar-brand {
            font-size: 1.25rem;
        }

        .video-card {
            border-radius: 0.75rem;
        }
    }

    /* Global Bootstrap Overrides */
    .card {
        background-color: #fff !important;
        border: var(--glass-border);
        color: var(--text-primary);
        backdrop-filter: blur(12px);
    }

    .card-header {
        background-color: var(--hover-bg);
        border-bottom: var(--glass-border);
    }

    .card-footer {
        background-color: var(--hover-bg);
        border-top: var(--glass-border);
    }

    .list-group-item {
        background-color: transparent;
        border-color: var(--border-color);
        color: var(--text-primary);
    }

    .modal-content {
        background-color: var(--bg-primary);
        border: var(--glass-border);
        color: var(--text-primary);
    }

    .modal-header,
    .modal-footer {
        border-color: var(--border-color);
    }

    .close {
        color: var(--text-primary);
        text-shadow: none;
        opacity: 0.8;
    }

    .close:hover {
        color: var(--text-primary);
        opacity: 1;
    }

    /* Social Feed Styles */
    .stories-container {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .stories-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .story-item {
        cursor: pointer;
        min-width: 70px;
    }

    .story-circle {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        padding: 2px;
        border: 2px solid var(--primary-color);
        transition: transform 0.2s ease;
    }

    .story-item:hover .story-circle {
        transform: scale(1.05);
    }

    .video-feed-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        overflow: visible;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
    }

    .video-feed-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .video-feed-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .video-feed-card .card-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 3.2em;
    }

    .video-thumbnail {
        transition: transform 0.3s ease;
    }

    .video-feed-card:hover .video-thumbnail {
        transform: scale(1.02);
    }

    /* Scrollbar for side navbar */
    .side-navbar::-webkit-scrollbar {
        width: 6px;
    }

    .side-navbar::-webkit-scrollbar-track {
        background: transparent;
    }

    .side-navbar::-webkit-scrollbar-thumb {
        background: var(--hover-bg);
        border-radius: 3px;
    }

    .side-navbar::-webkit-scrollbar-thumb:hover {
        background: var(--hover-bg-strong);
    }

    /* Responsive adjustments */
    @media (min-width: 992px) {
        .side-navbar {
            left: 0;
        }

        .main-content {
            margin-left: 280px;
            transition: margin-left 0.3s ease;
        }

        .side-navbar-overlay {
            display: none;
        }

        .btn-close-sidebar {
            display: none;
        }

        .btn-sidebar-toggle {
            display: none;
        }
    }

    /* Tablet and Mobile Adjustments */
    @media (max-width: 991.98px) {
        .side-navbar {
            left: -280px;
        }

        .main-content {
            margin-left: 0;
        }

        .btn-sidebar-toggle {
            display: flex;
        }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            padding: 0 1rem;
        }

        .hero-section {
            padding: 4rem 0;
        }

        .card {
            margin-bottom: 1rem;
        }
    }

    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
        }

        .hero-section {
            padding: 3rem 0;
        }

        .btn-lg {
            padding: 0.5rem 1.5rem;
            font-size: 1rem;
        }

        .navbar-brand {
            font-size: 1.25rem;
        }

        .video-card {
            border-radius: 0.75rem;
        }
    }

    /* Global Bootstrap Overrides */
    .card {
        background-color: #fff !important;
        border: var(--glass-border);
        color: var(--text-primary);
        backdrop-filter: blur(12px);
    }

    .card-header {
        background-color: var(--hover-bg);
        border-bottom: var(--glass-border);
    }

    .card-footer {
        background-color: var(--hover-bg);
        border-top: var(--glass-border);
    }

    .list-group-item {
        background-color: transparent;
        border-color: var(--border-color);
        color: var(--text-primary);
    }

    .modal-content {
        background-color: var(--bg-primary);
        border: var(--glass-border);
        color: var(--text-primary);
    }

    .modal-header,
    .modal-footer {
        border-color: var(--border-color);
    }

    .close {
        color: var(--text-primary);
        text-shadow: none;
        opacity: 0.8;
    }

    .close:hover {
        color: var(--text-primary);
        opacity: 1;
    }

    /* Social Feed Styles */
    .stories-container {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .stories-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .story-item {
        cursor: pointer;
        min-width: 70px;
    }

    .story-circle {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        padding: 2px;
        border: 2px solid var(--primary-color);
        transition: transform 0.2s ease;
    }

    .story-item:hover .story-circle {
        transform: scale(1.05);
    }

    .video-feed-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        overflow: visible;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
    }

    .video-feed-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .video-feed-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .video-feed-card .card-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 3.2em;
    }

    .video-thumbnail {
        transition: transform 0.3s ease;
    }

    .video-feed-card:hover .video-thumbnail {
        transform: scale(1.02);
    }

    .tracking-wide {
        letter-spacing: 0.05em;
    }

    .main-content {
        padding-top: 80px;
        /* Account for fixed navbar */
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .main-content main {
        width: 100%;
    }

    /* Toast Notification Styles */
    #toast-container {
        z-index: 9999;
    }

    .toast {
        border-radius: 0.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .toast-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-sidebar-toggle {
        display: flex;
    }
    }

    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            padding: 0 1rem;
        }

        .hero-section {
            padding: 4rem 0;
        }

        .card {
            margin-bottom: 1rem;
        }
    }

    @media (max-width: 576px) {
        .hero-title {
            font-size: 2rem;
        }

        .hero-section {
            padding: 3rem 0;
        }

        .btn-lg {
            padding: 0.5rem 1.5rem;
            font-size: 1rem;
        }

        .navbar-brand {
            font-size: 1.25rem;
        }

        .video-card {
            border-radius: 0.75rem;
        }
    }

    /* Global Bootstrap Overrides */
    .card {
        background-color: #fff !important;
        border: var(--glass-border);
        color: var(--text-primary);
        backdrop-filter: blur(12px);
    }

    .card-header {
        background-color: var(--hover-bg);
        border-bottom: var(--glass-border);
    }

    .card-footer {
        background-color: var(--hover-bg);
        border-top: var(--glass-border);
    }

    .list-group-item {
        background-color: transparent;
        border-color: var(--border-color);
        color: var(--text-primary);
    }

    .modal-content {
        background-color: var(--bg-primary);
        border: var(--glass-border);
        color: var(--text-primary);
    }

    .modal-header,
    .modal-footer {
        border-color: var(--border-color);
    }

    .close {
        color: var(--text-primary);
        text-shadow: none;
        opacity: 0.8;
    }

    .close:hover {
        color: var(--text-primary);
        opacity: 1;
    }

    /* Social Feed Styles */
    .stories-container {
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
    }

    .stories-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .story-item {
        cursor: pointer;
        min-width: 70px;
    }

    .story-circle {
        width: 65px;
        height: 65px;
        border-radius: 50%;
        padding: 2px;
        border: 2px solid var(--primary-color);
        transition: transform 0.2s ease;
    }

    .story-item:hover .story-circle {
        transform: scale(1.05);
    }

    .video-feed-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        overflow: visible;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
    }

    .video-feed-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .video-feed-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .video-feed-card .card-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 3.2em;
    }

    .video-thumbnail {
        transition: transform 0.3s ease;
    }

    .video-feed-card:hover .video-thumbnail {
        transform: scale(1.02);
    }

    .tracking-wide {
        letter-spacing: 0.05em;
    }

    .main-content {
        padding-top: 80px;
        /* Account for fixed navbar */
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .main-content main {
        width: 100%;
    }

    /* Toast Notification Styles */
    #toast-container {
        z-index: 9999;
    }

    .toast {
        border-radius: 0.75rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .toast-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .toast-body {
        padding: 1rem;
    }

    .toast-body a {
        margin-top: 0.5rem;
    }

    /* Modern Badges & Utilities */
    .bg-success-subtle {
        background-color: rgba(16, 185, 129, 0.1) !important;
        color: #10B981 !important;
    }

    .bg-primary-subtle {
        background-color: rgba(79, 70, 229, 0.1) !important;
        color: var(--primary-color) !important;
    }

    .bg-secondary-subtle {
        background-color: rgba(100, 116, 139, 0.1) !important;
        color: var(--text-secondary) !important;
    }

    .bg-warning-subtle {
        background-color: rgba(245, 158, 11, 0.1) !important;
        color: #d97706 !important;
    }

    .bg-danger-subtle {
        background-color: rgba(239, 68, 68, 0.1) !important;
        color: #ef4444 !important;
    }

    .bg-info-subtle {
        background-color: rgba(6, 182, 212, 0.1) !important;
        color: #0891b2 !important;
    }

    /* Enhanced Card Styles */
    .card {
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-4px);
        border-color: var(--primary-light);
    }

    /* Modern Form Controls */
    .form-control,
    .form-select {
        border-radius: 0.5rem;
        padding: 0.625rem 1rem;
        border-color: var(--border-color);
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }

    /* Table Modernization */
    .table-modern {
        border-collapse: separate;
        border-spacing: 0 0.5rem;
    }

    .table-modern thead th {
        border-bottom: none;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.05em;
        padding: 1rem;
    }

    .table-modern tbody tr {
        background-color: var(--bg-primary);
        box-shadow: var(--shadow-sm);
        transition: transform 0.2s ease;
    }

    .table-modern tbody tr:hover {
        transform: scale(1.01);
    }

    .table-modern td {
        padding: 1rem;
        vertical-align: middle;
        border: none;
    }

    .table-modern td:first-child {
        border-top-left-radius: 0.5rem;
        border-bottom-left-radius: 0.5rem;
    }

    .table-modern td:last-child {
        border-top-right-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
    }