

/* Instructor Card Styles */
 @media (min-width: 1024px) {
                .hero-cards {
                    display: block !important;
                }
                .hero .container {
                    grid-template-columns: 1fr 1fr;
                }
            }
            @media (max-width: 1023px) {
                .hero .container {
                    grid-template-columns: 2fr;
                    gap: 40px;
                }
                .hero-cards {
                    display: none !important;
                }
            }
            flipScaleBounce animation {
    opacity: 1;
    transform: rotateY(0deg) rotateX(0deg) scale(1);
    filter: blur(0px);
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}
/* .stat-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    perspective: 1000px;
}
.stat-card {
    animation: flipScaleBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: both;
} */
         /* h1, h2, h3, h4, h5, h6 {
                font-family: 'math';
            } */

        /* Cool 3D Flip, Scale & Bounce Animation */
        @keyframes flipScaleBounce {
            0% {
                opacity: 0;
                transform: rotateY(90deg) rotateX(45deg) scale(0.3);
                filter: blur(10px);
            }
            50% {
                opacity: 1;
                transform: rotateY(0deg) rotateX(0deg) scale(1.1);
            }
            100% {
                opacity: 1;
                transform: rotateY(0deg) rotateX(0deg) scale(1);
            }
        }

        /* Glow effect */
        /* @keyframes glow {
            0%, 100% {
                box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 10px 30px rgba(245, 158, 11, 0.1);
            }
            50% {
                box-shadow: 0 0 40px rgba(245, 158, 11, 0.6), 0 10px 50px rgba(245, 158, 11, 0.3);
            }
        } */

        /* Apply animations to stat cards */
        /* .stat-card {
            animation: flipScaleBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            animation-fill-mode: both;
        }

        .stat-card.loaded {
            animation: glow 2s ease-in-out infinite;
        }

        .stat-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .stat-card:nth-child(2) {
            animation-delay: 0.3s;
        }

        .stat-card:nth-child(3) {
            animation-delay: 0.5s;
        }

        .stat-card:nth-child(4) {
            animation-delay: 0.7s;
        } */

        /* Number animation */
        .stat-number {
            position: relative;
        }

        /* Hover effects */
        /* .stat-card {
            transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
            perspective: 1000px;
        } */
        
        /* .stat-card:hover {
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(245, 158, 11, 0.5) !important;
            transform: translateY(-12px) scale(1.05) rotateX(5deg);
            box-shadow: 0 30px 60px rgba(245, 158, 11, 0.3) !important;
        } */

        /* Ensure 3D perspective on container */
        .stat-container {
            perspective: 1200px;
        }


        
.why-choose {
    background: #f8f9fb;
    padding: clamp(40px, 8vw, 60px) 0;
}

.container2 {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 50px);
    flex-direction: row;
}

/* Left Image */
.left {
    flex: 1;
    min-width: 0;
}

.left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Right Section */
.right {
    min-width: 0;
}

.heading h2 {
    font-size: clamp(1.6rem, 4vw, 32px);
    color: #1e2a55;
    margin-bottom: 10px;
    line-height: 1.3;
}

.heading h2 span {
    color: #4f46e5;
}

.heading p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4f46e5;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(15px, 3vw, 25px);
}

.feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature .icon {
    width: 45px;
    height: 45px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.feature h4 {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 16px);
    color: #1e2a55;
}

.feature p {
    margin: 5px 0 0;
    font-size: clamp(0.85rem, 1.5vw, 14px);
    color: #6c757d;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .container2 {
        gap: clamp(20px, 4vw, 40px);
    }
}

@media (max-width: 768px) {
    .container2 {
        flex-direction: column;
        gap: 40px;
    }
    
    .left {
        width: 100%;
    }
    
    .right {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .container2 {
        width: 95%;
        gap: 30px;
    }
    
    .heading h2 {
        font-size: 1.4rem;
    }
    
    .features {
        gap: 15px;
    }
}


 .section > div[style*="background: var(--light-gray)"] {
            transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
        }
        
        .section > div[style*="background: var(--light-gray)"]:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
            background: var(--white) !important;
        }
        
        /* Responsive media queries for additional tweaks */
        @media (max-width: 1024px) {
            .hero .container {
                gap: 40px;
            }
        }
        
        @media (max-width: 768px) {
            .hero {
                min-height: auto;
                padding: 40px 20px !important;
            }
            
            .hero .container {
                gap: 30px;
            }
            
            .section {
                padding: 40px 0 !important;
            }
        }
        
        @media (max-width: 480px) {
            .hero {
                padding: 30px 15px !important;
            }
            
            input[type="email"],
            input[type="text"] {
                font-size: 16px !important; /* Prevents zoom on iOS */
            }
            
            button {
                font-size: 16px !important; /* Prevents zoom on iOS */
            }
        }


           /* Section scroll animation styles */
    .section {
        opacity: 1;
        transform: translateY(0);
    }

    .section.loaded .hero {
animation: flipScaleBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: both;    }

    /* Keyframe animation for fade in and slide up */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Stagger animation for child elements (cards, items, etc.) */
    .section.loaded .card,
    .section.loaded .category-box {
        animation: flipScaleBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: both;
    }

    .section.loaded .card:nth-child(1) { animation-delay: 0.1s; }
    .section.loaded .card:nth-child(2) { animation-delay: 0.2s; }
    .section.loaded .card:nth-child(3) { animation-delay: 0.3s; }
    .section.loaded .card:nth-child(4) { animation-delay: 0.4s; }
    .section.loaded .card:nth-child(n+5) { animation-delay: 0.5s; }

    .section.loaded .category-box:nth-child(1) { animation-delay: 0.1s; }
    .section.loaded .category-box:nth-child(2) { animation-delay: 0.2s; }
    .section.loaded .category-box:nth-child(3) { animation-delay: 0.3s; }
    .section.loaded .category-box:nth-child(4) { animation-delay: 0.4s; }
    .section.loaded .category-box:nth-child(5) { animation-delay: 0.5s; }
    .section.loaded .category-box:nth-child(6) { animation-delay: 0.6s; }

    /* Slide-in animations from left and right for cards */
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-60px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(60px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Apply alternating slide-in animations to cards */
    .section.loaded .card:nth-child(odd) {
        animation: flipScaleBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: both;
    }

    .section.loaded .card:nth-child(even) {
animation: flipScaleBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: both;    }

    /* Stagger delays for cards */
    .section.loaded .card:nth-child(1) { animation-delay: 0.1s; }
    .section.loaded .card:nth-child(2) { animation-delay: 0.2s; }
    .section.loaded .card:nth-child(3) { animation-delay: 0.3s; }
    .section.loaded .card:nth-child(4) { animation-delay: 0.4s; }
    .section.loaded .card:nth-child(5) { animation-delay: 0.5s; }
    .section.loaded .card:nth-child(6) { animation-delay: 0.6s; }
    .section.loaded .card:nth-child(n+7) { animation-delay: 0.7s; }

    /* Smooth transitions for hover effects */
    .section .card,
    .section .category-box {
        transition: all 0.3s ease;
    }
.instructor-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 24px 16px 18px 16px;
    text-align: center;
    transition: box-shadow 0.2s;
    position: relative;
    min-height: 260px;
}
.instructor-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color);
}
.instructor-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.instructor-card .credentials {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}
.instructor-card .stats {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
}
.instructor-card .stats-item {
    text-align: center;
}
.instructor-card .stats-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}
.instructor-card .stats-label {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Testimonial/Review Styles */
.review-testimonial {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px 18px 18px 18px;
    text-align: center;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.review-number {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.review-text {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}
.review-author {
    font-size: 0.95rem;
    color: var(--gray-color);
    font-style: italic;
}
/* ACS Custom Homepage Styles */
.acs-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.acs-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
}
.acs-logo {
    height: 48px;
}
.acs-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}
.acs-search-form {
    width: 350px;
    background: #f3f4f6;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 2px 12px;
}
.acs-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    width: 100%;
    padding: 8px 0;
}
.acs-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.acs-welcome {
    font-size: 1rem;
    margin-right: 10px;
    color: var(--dark-color);
}
.acs-social {
    color: #36516b;
    font-size: 1.1rem;
    margin: 0 2px;
    transition: color 0.2s;
}
.acs-social:hover {
    color: var(--primary-color);
}
.acs-btn {
    border: none;
    border-radius: 20px;
    padding: 7px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-block;
}
.acs-btn-login {
    background: var(--primary-color);
    color: #fff;
    margin-left: 10px;
}
.acs-btn-register {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 5px;
}
.acs-btn-login:hover, .acs-btn-register:hover {
    background: var(--primary-dark);
    color: #fff;
}
.acs-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--primary-color);
    padding: 0 40px;
    height: 48px;
}
.acs-nav-link {
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0 10px;
    line-height: 48px;
    transition: color 0.2s;
}
.acs-nav-link:hover, .acs-nav-home {
    color: var(--secondary-color);
}

.acs-hero {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 0 0 0;
    position: relative;
    min-height: 420px;
}
.acs-hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
}
.acs-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.acs-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}
.acs-hero-btns {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}
.acs-btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.acs-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.acs-btn-primary:hover, .acs-btn-outline:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* Slider styles */
.acs-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 30px 0 30px 0;
    margin: 0 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e5e7eb;
}
.acs-slider::-webkit-scrollbar {
    height: 8px;
}
.acs-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
}
.acs-slider-card {
    background: #fff;
    color: var(--dark-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 14px 18px 14px;
    margin-bottom: 10px;
    position: relative;
}
.acs-slider-img {
    width: 220px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #eee;
}
.acs-slider-info {
    text-align: center;
}
.acs-slider-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    min-height: 40px;
}
.acs-slider-instructor {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-bottom: 6px;
}
.acs-slider-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.acs-btn-slider {
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.acs-btn-slider:hover {
    background: var(--primary-dark);
    color: #fff;
}
/* LMS Stylesheet */

/* CSS Variables */
:root {
    /* Modern Vibrant Colors */
    --primary-color: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1e40af;
    --secondary-color: #9333ea;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #0f172a;
    --light-color: #ffffff;
    --light-gray: #f5f5f5;
    --gray-color: #64748b;
    --gray-light: #f8fafc;
    --gray-medium: #64748b;
    --gray-dark: #334155;
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    --gradient-secondary: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Shadow System - Modern Elevation */
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow: var(--shadow-md);
    --shadow-lg: var(--shadow-lg);

    /* Spacing Scale (4px base) */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 40px;

    /* Border Radius */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-gray);
    min-height: 150vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Sidebar toggle styles */
.admin-sidebar {
    position: relative;
    width: 240px;
    background: var(--white);
    transition: width 0.3s ease;
    color: var(--dark-color); /* ensure text contrast */
    overflow-y: auto;
}
.admin-sidebar.collapsed {
    width: 60px;
}
.admin-sidebar ul li a {
    display: flex;
    align-items: center;
    color: var(--dark-color); /* text visible */
}
.admin-sidebar.collapsed ul li a span {
    display: none;
}

/* hide scrollbar but still allow scrolling */
.admin-sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}
.admin-sidebar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

#sidebarToggle {
    position: absolute;
    top: 10px;
    right: -15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.admin-sidebar.collapsed #sidebarToggle i {
    transform: rotate(180deg);
}

.admin-sidebar ul {
    margin: 0;
    padding: 0;
}

.admin-sidebar ul li {
    list-style: none;
}

.admin-sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #ffffff;
}

.admin-sidebar ul li a i {
    margin-right: 10px;
}

.admin-sidebar.collapsed ul li a i {
    margin-right: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Rating stars */
.rating {
    display: flex;
    align-items: center;
    gap: 3px;
}
.rating i {
    color: #ccc;
    font-size: 0.9rem;
}
.rating i.filled {
    color: #f59e0b; /* amber star */
}

/* Review block */
.review {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.review .author {
    font-weight: 600;
}
.review .date {
    font-size: 0.8rem;
    color: var(--gray-color);
}

/* star rating input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}
.rating-input input {
    display: none;
}
.rating-input label {
    font-size: 1.8rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
/* Unselected stars on hover */
.rating-input label:hover {
    color: #fbbf24;
    transform: scale(1.2);
}
.rating-input label:hover ~ label {
    color: #fbbf24;
    transform: scale(1.2);
}
/* Selected/checked state - filled stars */
.rating-input input:checked ~ label {
    color: #f59e0b !important;
    transform: none;
}
/* Reset non-selected stars after checked input */
.rating-input input:checked ~ label ~ label {
    color: #e0e0e0 !important;
    transform: none;
}
.rating-input label i {
    display: block;
}

/* session sidebar styles */
.session-sidebar {
    position: fixed;
    scrollbar-width: none;
    left: 0;
    top: 60px; /* start below fixed header */
    bottom: 0;
    width: 430px; /* wider for richer listing */
    background: var(--white);
    box-shadow: var(--shadow);
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 500; /* below navbar */
    padding-top: 20px;
}
.session-sidebar.collapsed {
    width: 80px;
}

/* hide sidebar on small screens, reset main/footer spacing */
@media (max-width: 768px) {
    .session-sidebar {
        display: none;
    }
    main.sidebar-enabled {
        padding-left: 0 !important;
    }
    main.sidebar-enabled + footer {
        margin-left: 0 !important;
    }
}
.session-sidebar ul {
    margin: 0;
    padding: 0;
}
.session-sidebar ul li {
    list-style: none;
}
.session-sidebar ul li a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    transition: background 0.2s;
    width: 100px;
}
/* make session-item in sidebar align nicely */
.session-sidebar .session-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}
.session-sidebar .session-item .session-number {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
}
.session-sidebar .session-item .session-content {
    flex: 1;
    margin-left: 10px;
}
.session-sidebar .session-item .session-content h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}
.session-sidebar .session-item .session-content p {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin: 0;
}
.session-sidebar .session-item .session-status {
    margin-left: auto;
}
.session-sidebar .session-item .session-status .badge {
    margin-left: 5px;
}
/* collapsed sidebar hides extra info to keep narrow */
.session-sidebar.collapsed .session-item .session-content,
.session-sidebar.collapsed .session-item .session-status {
    display: none;
}
.session-sidebar.collapsed .session-item {
    justify-content: center;
}

.session-sidebar ul li a.active,
.session-sidebar ul li a:hover {
    background: var(--secondary-color);
}

/* locked items show gray and cannot be clicked */
.session-sidebar .locked {
    display: block;
    padding: 10px 20px;
    color: var(--gray-color);
    cursor: default;
    pointer-events: none;
}
.session-sidebar .locked i {
    margin-right: 8px;
    color: var(--gray-color);
}
.session-sidebar.collapsed ul li a,
.session-sidebar.collapsed ul li span {
    text-align: center;
    padding: 10px 0;
}
.session-sidebar.collapsed ul li a::before,
.session-sidebar.collapsed ul li span::before {
    content: attr(data-short);
}#sidebarToggle {
    position: absolute;
    top: 10px;
    right: -15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.session-sidebar.collapsed #sidebarToggle i {
    transform: rotate(180deg);
}

/* adjust content when sidebar collapsed (original admin behavior) */
.section-session {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

.section.sidebar-collapsed {
    margin-left: 80px;
}

/* override when a front‑end sidebar is active */
main.sidebar-enabled .section {
    margin-left: 0;
}

/* when a sidebar exists on the page, give main padding so content doesn’t sit underneath */
main.sidebar-enabled.sidebar-collapsed {
    padding-left: 15px 15px;
}

/* footer sits outside of main so shift it separately */
main.sidebar-enabled + footer {
    margin-left: 430px;
    transition: margin-left 0.3s ease;
}
main.sidebar-enabled.sidebar-collapsed + footer {
    margin-left: 80px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    
}

.nav-menu a {
    font-weight: 500;
    white-space: nowrap;
}

/* small badge for counts (e.g. cart) */
.nav-menu .badge {
    background: var(--danger-color);
    color: #fff;
    border-radius: 50%;
    padding: 2px 10px;
    font-size: 0.75rem;
    vertical-align: top;
    margin-left: 4px;
}



.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* search form in header */
.search-form {
    position: relative;
    width: 240px;
    margin-left: 20px;
}
.search-form input {
    width: 100%;
    padding: 8px 12px 8px 36px; /* room for icon */
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}
.search-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
    background: var(--light-gray);
}
.search-form button {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
    font-size: 1rem;
}
.search-form button:hover {
    color: var(--primary-color);
}

/* make search bar full width on smaller screens */
@media (max-width: 768px) {
    .search-form {
        width: 100%;
        margin: 10px 0;
    }
    .search-form input {
        padding-left: 36px;
    }
}

/* Course header cover */
.course-header-cover {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    margin-bottom: 20px;
}
.course-header-cover img {
    width: 100%;
    object-fit: cover;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

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

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

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--light-color);
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: var(--light-gray);
    color: var(--dark-color);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    
  background-color: #0095ff;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: rgba(255, 255, 255, .4) 0 1px 0 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system,system-ui,"Segoe UI","Liberation Sans",sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15385;
  margin: 0;
  outline: none;
  padding: 8px .8em;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #07c;
}

.btn-primary:focus {
  box-shadow: 0 0 0 4px rgba(0, 149, 255, .15);
}

.btn-primary:active {
  background-color: #0064bd;
  box-shadow: none;
}

/* .btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
} */

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

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

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

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

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

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
    height: 50px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 15px 0;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    text-align: center;
    background: #dbeafe;
    color: #1e40af;
}

.alert .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
}

.close-btn:hover {
    opacity: 1;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

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

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition);
    margin: 20px 0px;
    border: 1px solid #f0f0f0;
}

.card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-body {
    padding: 20px;
    text-align: left;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
    line-height: 1.4;
}

.card-text {
    color: var(--gray-color);
    margin-bottom: 16px;
    line-height: 1.6;
}

.card-footer {
    padding: 16px 24px;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Grid */
.grid {
    display: grid;
    gap: 24px;
}

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

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

/* Course page main content stack */
.course-main {
    max-width: 1000px;
    margin: 0 auto;
}

/* tighten material grid inside course page */
.course-main .grid.grid-2 {
    gap: 20px;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5472 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z"></path></svg>');
    background-size: 1200px 120px;
    animation: wave 15s linear infinite;
}

@keyframes wave {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 0; }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* Section */
.section {
    padding: 20px 0;
}
.price-old {
    text-decoration: line-through;
    color: #740808;
    margin-left: 10px;
    font-size: 1.2rem;
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: left;
    margin-bottom: 10px;
    color: var(--dark-color);
    background: linear-gradient(90deg, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-subtitle {
    text-align: left;
    color: var(--gray-color);
    margin-bottom: 40px;
    font-size: 1rem;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-color);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--gray-color);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Course Detail */
.course-header {
    background: var(--white);
    padding: 5px 0;
    margin-bottom: 40px;
}

.course-header-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}


.course-info h1 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--gray-color);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-sidebar {
    position: sticky;
    top: 80px; /* stay visible when scrolling */
}

.course-sidebar .sidebar-reviews {
    font-size: 0.9rem;
}
.course-sidebar .sidebar-reviews .review-card {
    transition: var(--transition);
}
.course-sidebar .sidebar-reviews .review-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.course-sidebar .sidebar-write-review {
    font-size: 0.9rem;
}
.course-sidebar .sidebar-write-review .rating-input i {
    color: var(--primary-color);
}

.course-sidebar .sidebar-write-review {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.course-progress {
    margin-bottom: 24px;
}

.progress-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Session List */
.session-list {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.session-item {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.session-item:last-child {
    border-bottom: none;
}

.session-item:hover {
    background: var(--light-gray);
}

.session-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.session-number.completed {
    background: var(--success-color);
}

.session-number.locked {
    background: var(--gray-color);
}

.session-content {
    flex: 1;
}

.session-content h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.session-content p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Video Player */
.video-container {
    background: var(--dark-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Quiz Styles */
.quiz-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 30px;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.quiz-header h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.quiz-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--gray-color);
    margin-top: 20px;
}

.question-card {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.question-number {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.option-label:hover {
    border-color: var(--primary-light);
}

.option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.option-label.correct {
    background: #d1fae5;
    border-color: var(--success-color);
}

.option-label.incorrect {
    background: #fee2e2;
    border-color: var(--danger-color);
}

/* Quiz Results */
.quiz-results {
    text-align: center;
    padding: 40px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border: 8px solid var(--border-color);
}

.score-circle.passed {
    border-color: var(--success-color);
    background: #d1fae5;
}

.score-circle.failed {
    border-color: var(--danger-color);
    background: #fee2e2;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
}

.score-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Materials Section */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.material-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.material-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.material-icon {
    width: 50px;
    height: 50px;
    background: #fee2e2;
    color: var(--danger-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.material-info {
    flex: 1;
}

.material-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.material-info p {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Certificate */
.certificate-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    border: 3px solid var(--primary-color);
}

.certificate-icon {
    font-size: 4rem;
    color: var(--warning-color);
    margin-bottom: 20px;
}

.certificate-number {
    font-family: monospace;
    background: var(--light-gray);
    padding: 8px 16px;
    border-radius: var(--radius);
    display: inline-block;
    margin: 16px 0;
}

/* Footer */
.footer {
    position: relative;
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
}

/* Admin Panel */
.admin-sidebar {
    background: var(--dark-color);
    color: var(--white);
    min-height: calc(100vh - 70px);
    width: 260px;
    position: fixed;
    left: 0;
    top: 70px;
    z-index: 1000;
}

.admin-sidebar ul {
    padding: 20px 0;
}

.admin-sidebar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #9ca3af;
    transition: var(--transition);
}

.admin-sidebar li a:hover,
.admin-sidebar li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.admin-content {
    margin-left: 260px;
    padding: 30px;
    transition: margin-left 0.3s;
}

/* adjust when sidebar collapsed */
.sidebar-collapsed .admin-content {
    margin-left: 60px;
}
.footer {
    margin-left: 0px;
    transition: margin-left 0.3s;
}
/* footer shift */
/* .footer {
    margin-left: 0px;
    transition: margin-left 0.3s;
} */
.admin .footer {
    margin-left: 260px;
}
.sidebar-collapsed .footer {
    margin-left: 60px;
}

/* shift navbar when admin sidebar present */
.admin .navbar {
    margin-left: 0px;
    transition: margin-left 0.3s;
}
.sidebar-collapsed .admin .navbar {
    margin-left: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    /* transition: var(--transition); */
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.stat-icon.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.stat-icon.orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #9a3412;
}

.stat-icon.purple {
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    color: #6b21a8;
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.stat-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Table Styles */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

th, td {
    padding: 16px;
    text-align: left;
}

th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark-color);
}

tr {
    border-bottom: 1px solid var(--border-color);
}

tr:last-child {
    border-bottom: none;
}

tr:hover {
    background: var(--light-gray);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #ffedd5;
    color: #9a3412;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Chart Styles */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: relative;
}

.chart-container h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.chart-container canvas {
    max-height: 400px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--gray-color);
}

.financial-summary {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(107, 33, 168, 0.05) 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.financial-summary h3 {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.engagement-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.metric-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.metric-card .metric-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.metric-card .metric-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .course-header-content {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        width: 200px;
    }
    
    .admin-content {
        margin-left: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .engagement-metrics-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        text-align: left;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        text-align: left;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .grid-3,
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .admin-sidebar {
        width: 100%;
        position: static;
        min-height: auto;
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .engagement-metrics-row {
        grid-template-columns: 1fr;
    }

    .quiz-container {
        padding: 20px;
    }
    
    .session-item {
        flex-wrap: wrap;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.empty-state p {
    color: var(--gray-color);
}

/* ============================================ */
/* HOMEPAGE SPECIFIC STYLES */
/* ============================================ */

/* Category Boxes */
.category-box {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-dark));
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.15);
}

.category-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(30, 58, 95, 0.25);
}

.category-box i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.category-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-box p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Feature Boxes - Why Learn With Us */
.feature-box {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-dark));
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    color: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.15);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.25);
}
 @media (min-width: 1024px) {
                .hero-cards {
                    display: block !important;
                }
                .hero .container {
                    grid-template-columns: 1fr 1fr;
                }
            }
            @media (max-width: 1023px) {
                .hero .container {
                    grid-template-columns: 2fr;
                    gap: 40px;
                }
                .hero-cards {
                    display: none !important;
                }
            }

              /* Cool 3D Flip, Scale & Bounce Animation */
        @keyframes flipScaleBounce {
            0% {
                opacity: 0;
                transform: rotateY(90deg) rotateX(45deg) scale(0.3);
                filter: blur(10px);
            }
            50% {
                opacity: 1;
                transform: rotateY(0deg) rotateX(0deg) scale(1.1);
            }
            100% {
                opacity: 1;
                transform: rotateY(0deg) rotateX(0deg) scale(1);
            }
        }

        /* Glow effect */
        @keyframes glow {
            0%, 100% {
                box-shadow: 0 0 20px rgba(245, 158, 11, 0.3), 0 10px 30px rgba(245, 158, 11, 0.1);
            }
            50% {
                box-shadow: 0 0 40px rgba(245, 158, 11, 0.6), 0 10px 50px rgba(245, 158, 11, 0.3);
            }
        }

        /* Apply animations to stat cards */
        .stat-card {
            animation: flipScaleBounce 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            animation-fill-mode: both;
        }

        .stat-card.loaded {
            animation: glow 2s ease-in-out infinite;
        }

        .stat-card:nth-child(1) {
            animation-delay: 0.1s;
        }

        .stat-card:nth-child(2) {
            animation-delay: 0.3s;
        }

        .stat-card:nth-child(3) {
            animation-delay: 0.5s;
        }

        .stat-card:nth-child(4) {
            animation-delay: 0.7s;
        }

        /* Number animation */
        .stat-number {
            position: relative;
        }

        /* Hover effects */
        .stat-card {
            transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
            perspective: 1000px;
        }
        
        /* .stat-card:hover {
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(245, 158, 11, 0.5) !important;
            transform: translateY(-12px) scale(1.05) rotateX(5deg);
            box-shadow: 0 30px 60px rgba(245, 158, 11, 0.3) !important;
        } */

        /* Ensure 3D perspective on container */
        .stat-container {
            perspective: 1200px;
        }

        .why-choose {
    background: #f8f9fb;
    padding: clamp(40px, 8vw, 60px) 0;
}

.container2 {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 50px);
    flex-direction: row;
}

/* Left Image */
.left {
    flex: 1;
    min-width: 0;
}

.left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Right Section */
.right {
    min-width: 0;
}

.heading h2 {
    font-size: clamp(1.6rem, 4vw, 32px);
    color: #1e2a55;
    margin-bottom: 10px;
    line-height: 1.3;
}

.heading h2 span {
    color: #4f46e5;
}

.heading p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #4f46e5;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(15px, 3vw, 25px);
}

.feature {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature .icon {
    width: 45px;
    height: 45px;
    background: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.feature h4 {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 16px);
    color: #1e2a55;
}

.feature p {
    margin: 5px 0 0;
    font-size: clamp(0.85rem, 1.5vw, 14px);
    color: #6c757d;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .container2 {
        gap: clamp(20px, 4vw, 40px);
    }
}

@media (max-width: 768px) {
    .container2 {
        flex-direction: column;
        gap: 40px;
    }
    
    .left {
        width: 100%;
    }
    
    .right {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .container2 {
        width: 95%;
        gap: 30px;
    }
    
    .heading h2 {
        font-size: 1.4rem;
    }
    
    .features {
        gap: 15px;
    }
}

.section > div[style*="background: var(--light-gray)"] {
            transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
        }
        
        .section > div[style*="background: var(--light-gray)"]:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
            background: var(--white) !important;
        }
        
        /* Responsive media queries for additional tweaks */
        @media (max-width: 1024px) {
            .hero .container {
                gap: 40px;
            }
        }
        
        @media (max-width: 768px) {
            .hero {
                min-height: auto;
                padding: 40px 20px !important;
            }
            
            .hero .container {
                gap: 30px;
            }
            
            .section {
                padding: 40px 0 !important;
            }
        }
        
        @media (max-width: 480px) {
            .hero {
                padding: 30px 15px !important;
            }
            
            input[type="email"],
            input[type="text"] {
                font-size: 16px !important; /* Prevents zoom on iOS */
            }
            
            button {
                font-size: 16px !important; /* Prevents zoom on iOS */
            }
        }

        /* Section scroll animation styles */
    .section {
        opacity: 1;
        transform: translateY(0);
    }

    .section.loaded {
        animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    /* Keyframe animation for fade in and slide up */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Stagger animation for child elements (cards, items, etc.) */
    .section.loaded .card,
    .section.loaded .category-box {
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .section.loaded .card:nth-child(1) { animation-delay: 0.1s; }
    .section.loaded .card:nth-child(2) { animation-delay: 0.2s; }
    .section.loaded .card:nth-child(3) { animation-delay: 0.3s; }
    .section.loaded .card:nth-child(4) { animation-delay: 0.4s; }
    .section.loaded .card:nth-child(n+5) { animation-delay: 0.5s; }

    .section.loaded .category-box:nth-child(1) { animation-delay: 0.1s; }
    .section.loaded .category-box:nth-child(2) { animation-delay: 0.2s; }
    .section.loaded .category-box:nth-child(3) { animation-delay: 0.3s; }
    .section.loaded .category-box:nth-child(4) { animation-delay: 0.4s; }
    .section.loaded .category-box:nth-child(5) { animation-delay: 0.5s; }
    .section.loaded .category-box:nth-child(6) { animation-delay: 0.6s; }

    /* Slide-in animations from left and right for cards */
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-60px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(60px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Apply alternating slide-in animations to cards */
    .section.loaded .card:nth-child(odd) {
        animation: slideInLeft 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .section.loaded .card:nth-child(even) {
        animation: slideInRight 1.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    /* Stagger delays for cards */
    .section.loaded .card:nth-child(1) { animation-delay: 0.1s; }
    .section.loaded .card:nth-child(2) { animation-delay: 0.2s; }
    .section.loaded .card:nth-child(3) { animation-delay: 0.3s; }
    .section.loaded .card:nth-child(4) { animation-delay: 0.4s; }
    .section.loaded .card:nth-child(5) { animation-delay: 0.5s; }
    .section.loaded .card:nth-child(6) { animation-delay: 0.6s; }
    .section.loaded .card:nth-child(n+7) { animation-delay: 0.7s; }

    /* Smooth transitions for hover effects */
    .section .card,
    .section .category-box {
        transition: all 0.3s ease;
    }
    
.feature-box i {
    font-size: 4rem;    margin-bottom: 15px;
        color: var(--primary-color);}
        .feature-box h4 {    
                font-size: 1.1rem;
                font-weight: 700;    
                margin-bottom: 10px;
            }
                .feature-box p {    font-size: 0.95rem;    opacity: 0.95;    line-height: 1.5;}
        /* Instructor Cards */
        .instructor-card {
                background: var(--white);
                border-radius: var(--radius-lg);
                padding: 20px;
                text-align: center;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
                transition: var(--transition);
                border: 1px solid #f0f0f0;
                                    
            }
                                        
        .instructor-card:hover {     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);     transform: translateY(-4px); }  
        .instructor-card img {     width: 100px;     height: 100px;     border-radius: 50%;     object-fit: cover;     margin-bottom: 15px;     border: 4px solid var(--primary-color); }  
        .instructor-card h4 {     font-size: 1.1rem;     font-weight: 700;     margin-bottom: 5px;     color: var(--dark-color); }  
        .instructor-card .credentials {     font-size: 0.85rem;     color: var(--gray-color);     margin-bottom: 10px; }  
        .instructor-card .stats {     display: flex;     justify-content: space-around;     border-top: 1px solid var(--border-color);     padding-top: 12px;     margin-top: 12px;     font-size: 0.9rem; }  
        .instructor-card .stats-item {     text-align: center; }  
        .instructor-card .stats-value {     font-weight: 700;     color: var(--dark-color);     display: block; }  
        .instructor-card .stats-label {     color: var(--gray-color);     font-size: 0.8rem; }  /* Review Cards with Numbered Circles */ 
        .review-testimonial {     background: var(--white);     border-radius: var(--radius-lg);     padding: 30px;     text-align: center;     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);     position: relative;     transition: var(--transition);     border: 1px solid #f0f0f0; }  
        .review-testimonial:hover {     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }  
        .review-number {     width: 50px;     height: 50px;     background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));     color: var(--dark-color);     border-radius: 50%;     display: flex;     align-items: center;     justify-content: center;     font-weight: 700;     font-size: 1.5rem;     margin: 0 auto 20px; }  
        .review-text {     font-size: 0.95rem;     color: var(--gray-color);     line-height: 1.6;     margin-bottom: 15px;     font-style: italic; }  
        .review-author {     font-size: 0.9rem;     color: var(--dark-color);     font-weight: 600; }  
        
        /* Progress Card */ .progress-card {     background: var(--white);     border-radius: var(--radius-lg);     padding: 20px;     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);     border: 1px solid #f0f0f0;     transition: var(--transition); }  
        .progress-card:hover {     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }  
        .progress-card h4 {     font-size: 0.95rem;     font-weight: 600;     margin-bottom: 8px;     color: var(--dark-color); }  
        .progress-card .instructor-info {     font-size: 0.85rem;     color: var(--gray-color);     margin-bottom: 12px; }  .progress-bar-container {     background: var(--border-color);     border-radius: 10px;     height: 8px;     overflow: hidden;     margin-bottom: 8px; }  
        .progress-bar-fill {     background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));     height: 100%;     border-radius: 10px;     transition: width 0.5s ease; }  .progress-percent {     float: right;     font-size: 0.85rem;     font-weight: 600;     color: var(--dark-color); }  
        .progress-card .btn {     width: 100%;     margin-top: 10px;     font-size: 0.9rem;     padding: 10px; }  
        
        /* Section with Boxes */ .boxes-section {     background: var(--light-gray);     padding: 60px 0;     margin: 40px 0; }  .boxes-grid {     display: grid;     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));     gap: 25px;     margin-bottom: 30px; }  
        
        /* Stats Display */ 
        .stat-card {     background: var(--white);     border-radius: var(--radius-lg);     padding: 30px;}
            .stat-card:hover     {
                text-align: center;     
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);     
                transition: var(--transition);        
                transform: translateY(-4px);     
                box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); 
            }  
            .stat-card h3 {     
                font-size: 2.5rem;     
                font-weight: 800;     
                color: var(--primary-color);     
                margin-bottom: 8px; }  
                .stat-card p {     
                    font-size: 1rem;     
                    color: var(--dark-color);     
                    font-weight: 600; 
                }  
                    /* Responsive adjustments */ 
                    @media (max-width: 768px) {
                             .hero h1 {
                                         font-size: 2rem;     }
                    .hero p {         
                        font-size: 1rem;     }      
                    .section-title {         
                        font-size: 1.5rem;     
                    }      
                    .boxes-grid {         
                        grid-template-columns: 1fr;     
                    }      
                .category-box, .feature-box {         
                    min-height: 150px;     }      
                    .category-box i,     .feature-box i {         
                        font-size: 2rem;     } 
                    }
        
        /* Notification Styles */
        .notifications-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .notification-item {
            padding: 15px;
            border-left: 4px solid #ddd;
            background-color: #f9f9f9;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .notification-item.unread {
            border-left-color: #1976d2;
            background-color: #e3f2fd;
            box-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
        }

        .notification-item.read {
            border-left-color: #4CAF50;
            opacity: 0.8;
        }

        .notification-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .notification-header strong {
            font-size: 16px;
            color: #333;
        }

        .notification-type {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
        }

        .badge-general {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        .badge-course {
            background-color: #e0f2f1;
            color: #00897b;
        }

        .badge-system {
            background-color: #ffebee;
            color: #d32f2f;
        }

        .notification-unread-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            background-color: #1976d2;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

        .notification-content {
            margin: 8px 0;
            color: #666;
            font-size: 14px;
            line-height: 1.4;
        }

        .notification-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            font-size: 12px;
            color: #999;
            margin-top: 8px;
        }

        .notification-mark-read {
            color: #1976d2;
            text-decoration: none;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .notification-mark-read:hover {
            color: #1565c0;
            text-decoration: underline;
        }

        .notification-badge {
            display: inline-block;
            background-color: #d32f2f;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            text-align: center;
            line-height: 24px;
            font-size: 12px;
            font-weight: bold;
            margin-left: 8px;
        }

        .card {
            background: white;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .card-body {
            padding: 20px;
        }

        .btn-small {
            padding: 6px 12px;
            font-size: 12px;
        }

        /* Notification Modal Styles */
        .notification-modal {
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .notification-modal-content {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            max-width: 700px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
            animation: slideUp 0.3s ease;
        }

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

        .notification-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 15px;
        }

        .notification-modal-header h2 {
            margin: 0;
            color: #333;
            font-size: 24px;
        }

        .notification-modal-close {
            background: none;
            border: none;
            font-size: 32px;
            color: #999;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .notification-modal-close:hover {
            background-color: #f5f5f5;
            color: #333;
        }

        .notification-modal-body {
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .notification-modal-text {
            color: #555;
            font-size: 16px;
            white-space: pre-wrap;
            word-wrap: break-word;
            margin: 15px 0;
        }

        .notification-modal-footer {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }

        .notification-modal-footer .btn {
            padding: 10px 20px;
            font-size: 14px;
        }

        .notification-modal-footer .btn-primary {
            background-color: #1976d2;
            color: white;
        }

        .notification-modal-footer .btn-primary:hover {
            background-color: #1565c0;
        }

        .notification-modal-footer .btn-secondary {
            background-color: #757575;
            color: white;
        }

        .notification-modal-footer .btn-secondary:hover {
            background-color: #616161;
        }

        /* Make notification items clickable */
        .notification-item {
            transition: all 0.2s ease;
        }

        .notification-item:hover {
            transform: translateX(5px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .notification-item.unread:hover {
            background-color: #d1e7f5;
            border-left-color: #1565c0;
        }

        .notification-item.read:hover {
            background-color: #f0f0f0;
        }

        /* Responsive modal */
        @media (max-width: 768px) {
            .notification-modal-content {
                max-width: 95%;
                max-height: 90vh;
                padding: 20px;
            }

            .notification-modal-header h2 {
                font-size: 20px;
            }

            .notification-modal-text {
                font-size: 14px;
            }

            .notification-modal-footer {
                flex-direction: column;
            }

            .notification-modal-footer .btn {
                width: 100%;
            }

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

            .chart-container {
                margin-bottom: 20px;
            }
        }
