/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color Palette */
    --bg-dark: #0B0F19;
    --bg-light: #F9FAFB;
    
    --primary-blue: #E11D48; /* Changed to Red as per request */
    --neon-purple: #BE123C;
    --neon-pink: #F43F5E;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    --text-main: #D1D5DB; /* Light text for dark backgrounds */
    --text-muted: #9CA3AF;
    --text-dark: #1F2937; /* Dark text for light backgrounds */
    
    --white: #FFFFFF;
    --brand-red: #E11D48;
    --brand-red-hover: #BE123C;
    
    /* Font Families */
    --font-en: 'Inter', sans-serif;
    --font-bn: 'Hind Siliguri', sans-serif;
}


html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-en);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

body.lang-bn { font-family: var(--font-bn); }
/* Typography & General */
h1, h2, h3, h4, h5, h6 { font-weight: 700; }
a { text-decoration: none; transition: all 0.3s ease; }

/* Global Red Button Override */
.btn-primary, .bg-primary {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
}
.btn-primary:hover {
    background-color: var(--brand-red-hover) !important;
    border-color: var(--brand-red-hover) !important;
}
.text-primary {
    color: var(--brand-red) !important;
}

/* Header Links Hover */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.nav-link:hover {
    color: var(--brand-red) !important;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(to right, var(--primary-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Hero Section & Dark Mode Theme --- */
.hero-dark {
    background-color: var(--bg-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 60px 0 80px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

/* Background Glowing Orbs */
.glow-orb-1, .glow-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.6;
}
.glow-orb-1 {
    width: 400px; height: 400px;
    background: var(--neon-purple);
    top: -100px; left: -100px;
}
.glow-orb-2 {
    width: 400px; height: 400px;
    background: var(--primary-blue);
    bottom: -150px; right: -50px;
}

.z-relative { position: relative; z-index: 10; }

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-panel-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Buttons */
.btn-neon {
    background: linear-gradient(45deg, var(--primary-blue), var(--neon-purple));
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}
.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.4);
    color: white;
}

/* Floating Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* Course Cards */
.course-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #E5E7EB;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--neon-purple);
}
.course-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}
.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.course-card:hover .course-thumb img {
    transform: scale(1.1);
}
.badge-neon {
    background: linear-gradient(45deg, var(--warning), #f97316);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: 15px; left: 15px;
    z-index: 2;
}

/* Navbar */
.navbar-custom {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}
.navbar-custom .navbar-brand {
    color: var(--white) !important;
    font-weight: 700;
    font-size: 1.5rem;
}
.navbar-custom .nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}
.navbar-custom .nav-link:hover {
    color: var(--neon-pink) !important;
}

/* Footer */
.footer-dark {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    padding: 60px 0 20px;
    margin-top: 80px;
}
.footer-dark h5 { color: var(--white); }
.footer-dark a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.footer-dark a:hover { color: var(--neon-purple); }

/* Forms */
.form-control-custom {
    background: var(--bg-light);
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}
.form-control-custom:focus {
    background: var(--white);
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

/* Admin Dashboard Specific */
.admin-wrapper {
    min-height: 100vh;
    background-color: var(--bg-light);
    overflow-x: hidden;
}
.sidebar-dark {
    width: 260px;
    background-color: var(--bg-dark);
    color: var(--text-main);
    padding-top: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1045;
}
.sidebar-dark .nav-link {
    color: var(--text-muted);
    padding: 12px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-dark .nav-link i {
    min-width: 24px;
    text-align: center;
}
.sidebar-dark .nav-link:hover, .sidebar-dark .nav-link.active {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--neon-purple);
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.admin-content {
    margin-left: 260px;
    padding: 20px 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
}
@media (max-width: 991.98px) {
    .sidebar-dark { transform: translateX(-100%); }
    .sidebar-dark.show { transform: translateX(0); }
    .admin-content { margin-left: 0; padding: 15px; }
    body.sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }
    body.sidebar-open { overflow: hidden; }
}
.stat-card {
    border: none;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.stat-icon {
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Desktop Sidebar Toggle */
@media (min-width: 992px) {
    body.sidebar-collapsed .sidebar-dark { 
        width: 80px; 
    }
    body.sidebar-collapsed .sidebar-dark .nav-link span,
    body.sidebar-collapsed .sidebar-dark .menu-title,
    body.sidebar-collapsed .sidebar-dark .nav-link::after {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
    body.sidebar-collapsed .sidebar-dark .nav-link {
        padding: 12px 0;
        text-align: center;
        justify-content: center;
    }
    body.sidebar-collapsed .sidebar-dark .nav-link i {
        margin-right: 0 !important;
        font-size: 1.2rem;
    }
    body.sidebar-collapsed .admin-content { 
        margin-left: 80px; 
    }
    body.sidebar-collapsed .sidebar-dark .logo-text {
        display: none;
    }
    body.sidebar-collapsed .sidebar-dark .submenu {
        display: none !important; /* Hide submenus when collapsed */
    }
}

/* Global Button Styles */
.btn-primary, .btn-neon, .btn-outline-primary {
    transition: all 0.3s ease !important;
}

.btn-primary:hover, .btn-neon:hover, .btn-outline-primary:hover, .btn-success:hover, .btn-info:hover {
    background-color: #ef4444 !important; /* Red hover color */
    border-color: #ef4444 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
    transform: translateY(-2px);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
