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

:root {
    --primary-black: #000000;
    --dark-black: #111111;
    --medium-black: #1a1a1a;
    --light-black: #2a2a2a;
    --primary-yellow: #da6d07;
    --gold-yellow: #FFC107;
    --light-yellow: #f5a700;
    --dark-yellow: #FFA000;
    --accent-blue: #2563eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-light: #ffffff;
    --text-gray: #cccccc;
    --text-dark: #666666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-black) 100%);
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--medium-black) 100%);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--primary-yellow);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

header h1 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--light-black);
    border: 1px solid var(--primary-yellow);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

nav a:hover::before {
    left: 100%;
}

/* Main Content */
main {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Forms */
.auth-form {
    max-width: 450px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.15);
    border: 1px solid var(--primary-yellow);
    backdrop-filter: blur(10px);
}

.auth-form h2 {
    text-align: center;
    color: var(--primary-yellow);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

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

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-black);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--primary-black);
    color: var(--text-light);
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    background: var(--dark-black);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--dark-yellow) 100%);
    color: var(--primary-black);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--primary-yellow) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--light-black) 0%, var(--medium-black) 100%);
    color: var(--text-light);
    border: 2px solid var(--primary-yellow);
}

.btn-secondary:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

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

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

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

/* Cards */
.card {
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--gold-yellow));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-yellow);
}

.course-card {
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--gold-yellow));
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.25);
    border-color: var(--primary-yellow);
}

.course-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover img {
    transform: scale(1.1);
}

.course-card-content {
    padding: 1.5rem;
}

/* Grids */
.courses-grid, .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1rem 0;
}

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

/* Alerts */
.alert {
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--error-color);
    border-left-color: var(--error-color);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: var(--accent-blue);
    border-left-color: var(--accent-blue);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--medium-black);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 1.5rem 0;
}

.table th,
.table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--light-black);
    color: var(--text-light);
}

.table th {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--medium-black) 100%);
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tr {
    transition: all 0.3s ease;
}

.table tr:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: scale(1.01);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--medium-black) 100%);
    color: var(--text-light);
    border-radius: 0;
    margin: 0;
    border-bottom: 3px solid var(--primary-yellow);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-black) 70%);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-yellow);
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    position: relative;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Benefits Section */
.benefits {
    padding: 1rem 1rem;
    background: var(--dark-black);
}

.benefits h3 {
    text-align: center;
    color: var(--primary-yellow);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--gold-yellow));
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-yellow);
}

.benefit-card h4 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Payment Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}



.modal-content {
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
    border: 2px solid var(--primary-yellow);
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-yellow);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--light-yellow);
}

/* Video Player */
.video-player {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    background: var(--medium-black);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    border: 2px solid var(--primary-yellow);
}

.video-player video {
    width: 100%;
    border-radius: 12px;
}

/* Status indicators */
.status-active {
    color: var(--success-color);
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
    border: 1px solid var(--success-color);
}

.status-inactive {
    color: var(--error-color);
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 20px;
    border: 1px solid var(--error-color);
}

.status-pending {
    color: var(--warning-color);
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 20px;
    border: 1px solid var(--warning-color);
}

/* Pricing Plans */
.pricing-plans {
    margin: 1.5rem 0;
}

.plan-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.plan-option {
    padding: 1.25rem;
    border: 2px solid var(--light-black);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--medium-black);
    color: var(--text-light);
}

.plan-option:hover {
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(5px);
}

.plan-option.active {
    border-color: var(--primary-yellow);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* Admin Styles */
.admin-sidebar {
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--dark-black) 100%);
    color: var(--text-light);
    padding: 2rem 1rem;
    min-height: 100vh;
    border-right: 3px solid var(--primary-yellow);
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.admin-sidebar h2 {
    color: var(--primary-yellow);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-sidebar nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 600;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.admin-content {
    padding: 2rem;
    background: var(--dark-black);
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.admin-header h1 {
    color: var(--primary-yellow);
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Reports and Statistics */
.report-filters {
    margin-bottom: 2rem;
}

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

.summary-cards, .questions-stats, .payments-stats, .announcements-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--gold-yellow));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-yellow);
}

.stat-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-card p {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    color: var(--primary-yellow);
}

.stat-success { color: var(--success-color); }
.stat-warning { color: var(--warning-color); }
.stat-error { color: var(--error-color); }

.revenue-amount {
    color: var(--primary-yellow);
    font-size: 2.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    nav {
        flex-direction: column;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 3px solid var(--primary-yellow);
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Additional enhancements */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.admin-form {
    max-width: 700px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Footer */
footer {
    background: var(--primary-black);
    color: var(--text-gray);
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--primary-yellow);
    margin-top: 3rem;
}

/* Auth links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--primary-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--light-yellow);
    text-decoration: underline;
}

/* Course access info */
.course-access-info {
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-yellow);
}

/* Video controls */
.video-controls {
    background: var(--light-black);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--primary-yellow);
}

.video-controls button {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.video-controls button:hover {
    background: var(--light-yellow);
    transform: scale(1.05);
}

/* Question and Answer Styles */
.question-preview, .content-preview {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.question-detail, .payment-detail, .send-announcement {
    max-width: 800px;
}

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

.info-item {
    padding: 1rem;
    background: var(--light-black);
    border-radius: 8px;
    border-left: 3px solid var(--primary-yellow);
}

.question-text, .answer-text {
    background: var(--light-black);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    white-space: pre-wrap;
    border-left: 4px solid var(--primary-yellow);
}

.existing-answer {
    margin-top: 2rem;
    border-left: 4px solid var(--success-color);
}

/* Announcement Styles */
.announcement-card {
    position: relative;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, var(--medium-black) 0%, var(--light-black) 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--gold-yellow));
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.15);
    border-color: var(--primary-yellow);
}

.announcement-header {
    border-bottom: 1px solid var(--light-black);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.announcement-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.announcement-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--medium-black) 0%, var(--light-black) 100%);
    border-radius: 15px;
    margin: 3rem 0;
    border: 2px solid var(--primary-yellow);
}

.cta h3 {
    color: var(--primary-yellow);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE HEADER ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-yellow);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--light-yellow);
}

/* Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--medium-black) 100%);
    border-bottom: 3px solid var(--primary-yellow);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
    position: relative;
}

/* Logo/Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand h1 {
    margin: 0;
    color: var(--primary-yellow);
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--light-black);
    border: 1px solid var(--primary-yellow);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.main-nav a:hover {
    background: var(--primary-yellow);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.main-nav a:hover::before {
    left: 100%;
}

/* User Info in Header */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-yellow);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .brand {
        justify-content: space-between;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        margin-top: 1rem;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
        padding: 1rem;
    }

    .user-info {
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand h1 {
        font-size: 1.5rem;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .main-nav a {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

/* Admin Header */
.admin-header .menu-toggle {
    top: 0.5rem;
    right: 0.5rem;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-black) 0%, var(--dark-black) 100%);
    box-shadow: -5px 0 25px rgba(255, 215, 0, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    border-left: 3px solid var(--primary-yellow);
}

.mobile-menu-container.active {
    right: 0;
}

.mobile-menu-header {
    padding: 2rem 1.5rem;
    border-bottom: 2px solid var(--primary-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header h2 {
    color: var(--primary-yellow);
    margin: 0;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--primary-yellow);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-nav {
    padding: 1.5rem;
}

.mobile-menu-nav a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    background: var(--light-black);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: var(--primary-yellow);
    color: var(--primary-black);
    border-color: var(--primary-yellow);
    transform: translateX(-5px);
}

.mobile-user-info {
    padding: 1.5rem;
    border-top: 1px solid var(--light-black);
    color: var(--text-light);
}

/* ===== ENHANCED HEADER VARIANTS ===== */
/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--dark-black) 0%, var(--medium-black) 100%);
}

.dashboard-header .main-nav a {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
}

/* Admin Header */
.admin-header .main-nav a {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success-color);
}

/* Welcome Page Header */
.welcome-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.welcome-header .main-nav a {
    background: rgba(255, 215, 0, 0.2);
    border-color: var(--primary-yellow);
}

/* ===== HEADER ANIMATIONS ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-container {
    animation: slideDown 0.5s ease;
}

/* ===== STICKY HEADER ===== */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

/* Enhanced Mobile Menu Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-menu-nav a {
    animation: slideInDown 0.3s ease forwards;
    animation-delay: calc(var(--item-index) * 0.1s);
    opacity: 0;
}

/* Add this to your mobile menu JavaScript to set item index */
document.querySelectorAll('.mobile-menu-nav a').forEach((link, index)=> {
        link.style.setProperty('--item-index', index);
    }

);