/* LMS Styles - Modern Design with Dark Mode Support */

/* CSS Variables for Light and Dark Themes */
:root {
    /* Light Theme Colors */
    --primary: #7C3AED;
    /* Purple */
    --primary-light: #A855F7;
    --primary-dark: #6D28D9;
    --secondary: #EC4899;
    /* Pink */
    --accent: #F59E0B;
    /* Amber */
    --success: #10B981;
    /* Green */
    --warning: #F59E0B;
    /* Amber */
    --error: #EF4444;
    /* Red */

    /* Neutral Colors */
    --background: #FFFFFF;
    --surface: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Layout */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;

    /* Spacing */
    --header-height: 70px;
    --footer-height: 300px;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --background: #0F172A;
    --surface: #1E293B;
    --card-bg: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --text-light: #E2E8F0;
    --text-dark: #F8FAFC;
    --border: #334155;
    --border-light: #475569;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo i {
    font-size: 1.8rem;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin-top: 2px;
}

.search-section {
    flex: 1;
    max-width: 350px;
    margin: 0 1rem;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.video-search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.video-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.video-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.search-results-dropdown .search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: var(--text-primary);
}
.search-results-dropdown .search-result-item:hover {
    background-color: #f8f9fa;
}

.search-results-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.search-results-dropdown .search-result-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.search-results-dropdown .search-result-category {
    font-size: 0.8rem;
    color: #666;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    font-size: 1.5rem;
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--surface);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

.logout-btn {
    color: var(--error) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    padding: 0;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Mobile Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #1D4ED8;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #059669;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.6rem 1.4rem;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
    padding: 0.6rem 1.4rem;
}

.btn-outline-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    box-sizing: border-box;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Select dropdown options styling for dark mode */
.form-group select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem;
    margin: 0.25rem 0;
}

.form-group select option:checked {
    background: var(--primary);
    color: white;
}

/* Light mode overrides */
@media (prefers-color-scheme: light) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: white;
        color: #333;
    }

    .form-group select option {
        background-color: white;
        color: #333;
    }

    .form-group select option:checked {
        background: var(--primary);
        color: white;
    }
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        background-color: #1e293b;
        color: #f1f5f9;
    }

    .form-group select option {
        background-color: #1e293b;
        color: #f1f5f9;
    }

    .form-group select option:checked {
        background: #3b82f6;
        color: white;
    }
}

/* Data-theme attribute overrides */
html[data-theme="dark"] .form-group input,
html[data-theme="dark"] .form-group select,
html[data-theme="dark"] .form-group textarea {
    background-color: #1e293b;
    color: #f1f5f9;
}

html[data-theme="dark"] .form-group select option {
    background-color: #1e293b;
    color: #f1f5f9;
}

html[data-theme="dark"] .form-group select option:checked {
    background: #3b82f6;
    color: white;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group select,
html[data-theme="light"] .form-group textarea {
    background-color: white;
    color: #333;
}

html[data-theme="light"] .form-group select option {
    background-color: white;
    color: #333;
}

html[data-theme="light"] .form-group select option:checked {
    background: var(--primary);
    color: white;
}

/* Form Select Dark Mode Support */
.form-select {
    background-color: var(--input-bg);
    border-color: var(--border);
    color: var(--text-primary);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select option {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.form-select option:checked {
    background-color: var(--primary);
    color: white;
}

/* Dark mode specific styles for form-select */
html[data-theme="dark"] .form-select {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

html[data-theme="dark"] .form-select option {
    background-color: #1e293b;
    color: #f1f5f9;
}

html[data-theme="dark"] .form-select option:checked {
    background-color: #3b82f6;
    color: white;
}

/* Light mode specific styles for form-select */
html[data-theme="light"] .form-select {
    background-color: white;
    border-color: #d1d5db;
    color: #374151;
}

html[data-theme="light"] .form-select option {
    background-color: white;
    color: #374151;
}

html[data-theme="light"] .form-select option:checked {
    background-color: var(--primary);
    color: white;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.greeting {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.greeting h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.greeting p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 10px;
    background: #E5E7EB;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #059669);
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    border: 1px solid #F59E0B;
}

.status-inprogress {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E40AF;
    border: 1px solid #3B82F6;
}

.status-completed {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    border: 1px solid #10B981;
}

.video-card {
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.video-card.locked {
    position: relative;
}

.locked-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.video-player {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.lesson-info {
    margin-bottom: 2rem;
}

.lesson-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.lesson-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.completion-indicator {
    text-align: center;
    padding: 1rem;
    background: #D1FAE5;
    border-radius: var(--radius);
    color: #065F46;
    font-weight: 500;
    margin-top: 1rem;
}

/* Tables */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text-primary);
}

td {
    color: var(--text-secondary);
    background: var(--card-bg);
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-header h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1rem;
}

.navbar h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.sidebar {
    width: 250px;
    background: var(--card-bg);
    border-right: 1px solid var(--border);
    padding: 2rem 1rem;
}

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

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--primary);
    color: white;
}

.sidebar i {
    margin-right: 0.75rem;
    width: 20px;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.flex-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-cols-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }

    .header-content {
        flex-wrap: nowrap;
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 999;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .main-nav.mobile-menu-open {
        max-height: 500px;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        margin: 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
        transition: all 0.2s ease;
        background: transparent;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        padding-left: 2rem;
    }

    .flex-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-content,
    .container {
        padding: 1rem;
    }

    .grid-cols-auto-fit,
    .grid-cols-auto-fill {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    /* Footer Styles */
    .main-footer {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        color: white;
        margin-top: auto;
        position: relative;
        overflow: hidden;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 2rem 2rem;
    }

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

    .footer-section h3 {
        color: white;
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-section p {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .footer-links {
        list-style: none;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-links a:hover {
        color: white;
    }

    .footer-social {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }

    .footer-social a {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .footer-social a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .footer-newsletter {
        margin-top: 1rem;
    }

    .newsletter-form {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .newsletter-input {
        flex: 1;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 0.9rem;
    }

    .newsletter-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .newsletter-btn {
        padding: 0.75rem 1.5rem;
        background: white;
        color: var(--primary);
        border: none;
        border-radius: var(--radius-sm);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .newsletter-btn:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: translateY(-1px);
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
        text-align: center;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
    }

    .footer-bottom-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-bottom-links {
        display: flex;
        gap: 2rem;
    }

    .footer-bottom-links a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

    .footer-bottom-links a:hover {
        color: white;
    }

    /* Main Content Layout */
    .main-content {
        min-height: calc(100vh - var(--header-height) - var(--footer-height));
        padding: 2rem;
    }

    .content-wrapper {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Dashboard Styles */
    .dashboard {
        /* Remove padding as main-content already provides it */
    }

    .dashboard-header {
        text-align: center;
        margin-bottom: 3rem;
    }

    .dashboard-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .dashboard-subtitle {
        font-size: 1.1rem;
        color: var(--text-secondary);
        max-width: 600px;
        margin: 0 auto;
    }

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

    .stat-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
        text-align: center;
    }

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        margin: 0 auto 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 1rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

    .video-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .video-card-wrapper {
        position: relative;
    }

    .video-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: all 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
        display: block;
        height: 100%;
    }

    .video-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary);
    }

    .video-thumbnail {
        position: relative;
        width: 100%;
        height: 200px;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
        overflow: hidden;
    }

    .video-play-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.8);
        border-radius: 50%;
        width: 70px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.8rem;
        transition: all 0.3s ease;
    }

    .video-card:hover .video-play-icon {
        background: rgba(0, 0, 0, 0.9);
        transform: translate(-50%, -50%) scale(1.1);
    }

    .video-duration-badge {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .locked-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: center;
    }

    .locked-overlay i {
        font-size: 3rem;
        margin-bottom: 0.5rem;
    }

    .video-content {
        padding: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .video-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }

    .video-description {
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.4;
    }

    .video-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .status-indicator {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
    }

    .status-dot.status-completed {
        background: var(--success);
    }

    .status-dot.status-in-progress {
        background: var(--warning);
    }

    .status-dot.status-pending {
        background: var(--text-muted);
    }

    .status-text {
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-secondary);
    }

    .progress-indicator {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--primary);
    }

    /* Progress Bar */
    .progress-container {
        margin-top: auto;
        margin-bottom: 1rem;
    }

    .progress-bar {
        width: 100%;
        height: 8px;
        background: var(--border);
        border-radius: 4px;
        overflow: hidden;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 4px;
        transition: width 0.4s ease;
    }

    .video-actions {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
    }

    .watch-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--primary);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .watch-btn:hover {
        color: var(--primary-dark);
    }

    /* Progress Bar */
    .progress-container {
        margin-top: 1rem;
    }

    .progress-bar {
        width: 100%;
        height: 6px;
        background: var(--border);
        border-radius: 3px;
        overflow: hidden;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 3px;
        transition: width 0.3s ease;
    }

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        text-decoration: none;
        text-align: center;
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: white;
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .btn-secondary {
        background: var(--surface);
        color: var(--text-primary);
        border: 1px solid var(--border);
    }

    .btn-secondary:hover {
        background: var(--card-bg);
        box-shadow: var(--shadow);
    }

    .btn-success {
        background: var(--success);
        color: white;
    }

    .btn-success:hover {
        background: #059669;
        transform: translateY(-2px);
    }

    .btn-outline {
        background: transparent;
        color: var(--primary);
        border: 2px solid var(--primary);
    }

    .btn-outline:hover {
        background: var(--primary);
        color: white;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        display: block;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .form-input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-size: 1rem;
        background: var(--card-bg);
        color: var(--text-primary);
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    }

    .form-textarea {
        resize: vertical;
        min-height: 100px;
    }

    /* Cards */
    .card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .card:hover {
        box-shadow: var(--shadow-lg);
    }

    .card-header {
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        background: var(--surface);
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-footer {
        padding: 1.5rem;
        border-top: 1px solid var(--border);
        background: var(--surface);
    }

    /* Alerts */
    .alert {
        padding: 1rem;
        border-radius: var(--radius);
        margin-bottom: 1rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .alert-success {
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid rgba(16, 185, 129, 0.2);
        color: var(--success);
    }

    .alert-error {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.2);
        color: var(--error);
    }

    .alert-warning {
        background: rgba(245, 158, 11, 0.1);
        border: 1px solid rgba(245, 158, 11, 0.2);
        color: var(--warning);
    }

    .alert-info {
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: var(--primary);
    }

    /* Loading Spinner */
    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid var(--border);
        border-top: 4px solid var(--primary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .header-content {
            padding: 0 1rem;
        }

        /* .nav-link s {
            display: none;
        } */

        .brand-logo {
            font-size: 1.25rem;
        }

        .brand-tagline {
            display: none;
        }

        .footer-content {
            padding: 2rem 1rem;
        }

        .footer-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .footer-bottom-content {
            flex-direction: column;
            text-align: center;
        }

        .footer-bottom-links {
            justify-content: center;
        }

        .content-wrapper {
            padding: 0 1rem;
        }

        .dashboard-title {
            font-size: 2rem;
        }

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

        .video-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .video-thumbnail {
            height: 160px;
        }

        .video-play-icon {
            width: 50px;
            height: 50px;
            font-size: 1.2rem;
        }

        .video-duration-badge {
            font-size: 0.7rem;
            padding: 0.2rem 0.4rem;
        }

        .video-content {
            padding: 1.25rem;
        }

        .video-title {
            font-size: 1.1rem;
        }

        .section-header h2 {
            font-size: 1.3rem;
        }

        .newsletter-form {
            flex-direction: column;
        }

        .newsletter-btn {
            width: 100%;
        }
    }

    @media (max-width: 480px) {
        .header-content {
            padding: 0 0.5rem;
        }

        .brand-logo {
            font-size: 1.1rem;
        }

        .user-name {
            display: none;
        }

        .stat-card {
            padding: 1.5rem;
        }

        .video-content {
            padding: 1rem;
        }

        .btn {
            padding: 0.6rem 1.2rem;
            font-size: 0.9rem;
        }
    }
}







/* Dashboard Styles - Applied to all screen sizes */
.dashboard {
    /* Remove padding as main-content already provides it */
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card-wrapper {
    position: relative;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="video-pattern" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23video-pattern)"/></svg>');
    opacity: 0.3;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.video-card:hover .video-play-icon {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.locked-overlay i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.video-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.video-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.status-completed {
    background: var(--success);
}

.status-dot.status-in-progress {
    background: var(--warning);
}

.status-dot.status-pending {
    background: var(--text-muted);
}

.status-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.progress-container {
    margin-top: auto;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.video-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    color: var(--primary-dark);
}

/* Disable video download options */
video::-webkit-media-controls-panel {
    -webkit-appearance: none !important;
}

video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-internal-media-controls-download-button {
    display: none !important;
}

video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ============================================ */

/* Tablets and Below (768px and less) - Additional Styles */
@media (max-width: 768px) {

    .logo-section {
        min-width: auto;
    }

    .brand-logo {
        font-size: 1.15rem;
    }

    .brand-tagline {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }

    /* Hide user name on small screens */
    .user-name {
        display: none;
    }

    .user-menu-btn {
        padding: 0.5rem 0.75rem;
    }

    /* Responsive forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Responsive cards */
    .card {
        margin: 1rem 0;
    }

    /* Admin dashboard responsive */
    .dashboard {
        padding: 1rem 0.5rem;
    }

    .content-wrapper {
        padding: 1rem !important;
    }

    /* Responsive table */
    table {
        font-size: 0.85rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    /* Button responsiveness */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Hide extra columns in tables on mobile */
    table thead th:nth-child(n+4),
    table tbody td:nth-child(n+4) {
        display: none;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {

    /* Header adjustments for small phones */
    .header-content {
        padding: 0 0.75rem;
        height: 60px;
    }

    .brand-logo {
        font-size: 1rem;
        width: auto;
    }

    .brand-logo i {
        font-size: 1.3rem;
    }

    /* Ensure navbar is completely hidden */
    /* .main-nav,
    .main-nav * {
        display: none !important;
    } */

    /* Header actions */
    .header-actions {
        gap: 0.25rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    /* User menu dropdown positioning */
    .user-dropdown {
        right: -10px;
        min-width: 180px;
        max-width: 90vw;
    }

    /* Admin page responsive */
    .dashboard-header {
        padding: 1rem 0.5rem;
    }

    .dashboard-title {
        font-size: 1.3rem;
    }

    .dashboard-subtitle {
        font-size: 0.85rem;
    }

    /* Content wrapper */
    .content-wrapper {
        padding: 0.75rem !important;
    }

    /* Card adjustments */
    .card {
        margin: 0.75rem 0;
        padding: 1rem;
    }

    .card-header {
        padding: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    /* Form adjustments */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-input,
    .form-select,
    input,
    select,
    textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 0.6rem 0.75rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
    }

    /* Icon size reduction */
    .btn i {
        font-size: 0.9rem;
    }

    /* Tables - show as cards on mobile */
    table {
        width: 100%;
        display: block;
        border-collapse: collapse;
        font-size: 0.8rem;
    }

    table thead {
        display: none;
    }

    table tbody {
        display: block;
    }

    table tr {
        display: block;
        border-bottom: 2px solid var(--border);
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--bg-primary);
    }

    table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
    }

    table td::before {
        content: attr(data-label);
        font-weight: 600;
        flex: 0 0 40%;
        color: var(--text-secondary);
    }

    /* Grid responsive */
    .grid-cols-auto-fit,
    .grid-cols-auto-fill,
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    /* Flex responsive */
    .flex-container {
        flex-direction: column;
    }

    /* Quiz page responsive */
    .quiz-content {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .question-card {
        padding: 1rem;
    }

    .quiz-navigation {
        order: -1;
    }

    .question-nav {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.25rem;
    }

    .nav-item {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    /* Hide elements on very small screens */
    .hide-mobile {
        display: none !important;
    }

    /* Sidebar adjustments */
    .sidebar {
        width: 100%;
        position: fixed;
        left: 0;
        top: var(--header-height);
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    /* Modal responsive */
    .modal {
        width: 95vw;
        max-height: 90vh;
        margin: auto;
    }

    /* Alert responsive */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    /* Video responsive */
    video {
        width: 100%;
        height: auto;
    }
}