/* main.css - Darmalian Academy Professional Theme */
:root {
    /* Primary Colors */
    --primary: #2a6eff;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary: #7c3aed;
    --secondary-dark: #5b21b6;
    --secondary-light: #8b5cf6;
    
    /* Accent Colors */
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Neutral Colors - Light Theme (Default) */
    --dark: #ffffff;
    --darker: #f8fafc;
    --light: #0f172a;
    --gray: #e2e8f0;
    --light-gray: #64748b;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
}

/* Dark Theme - Automatically applied based on system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --dark: #0f172a;
        --darker: #1e293b;
        --light: #f1f5f9;
        --gray: #334155;
        --light-gray: #94a3b8;
        --card-bg: #1e293b;
        --border: #334155;
        
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
        --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: var(--font-sans);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Loading Bar */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Header & Navigation */
.main-header {
    background-color: var(--darker);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 70px;
}

/* REDUCED LOGO SIZE */
.logo {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    font-weight: 900;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo-primary {
    color: var(--primary);
}

.logo-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--gray);
    color: var(--primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.hamburger:hover {
    background-color: var(--gray);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--darker);
    border: 2px solid var(--accent);
    font-weight: 700;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    20% {
        transform: scale(25, 25);
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

/* REMOVED UNDERLINE FROM HIGHLIGHT */
.highlight::after {
    display: none; /* Removed the underline */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--light-gray);
    line-height: 1.7;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

/* Hero Terminal */
.hero-terminal {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--darker), var(--card-bg));
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.terminal-header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28ca42; }

.terminal-dot:hover {
    transform: scale(1.2);
}

.terminal-body {
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.2);
    min-height: 300px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.terminal-line {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.terminal-output {
    color: var(--light);
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.terminal-output.command {
    color: #8be9fd;
}

.terminal-output.success {
    color: #50fa7b;
}

.terminal-output.info {
    color: #ffb86c;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 20px;
    background: var(--accent);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    height: 3px;
    width: 100px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 2rem auto;
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: translateX(-100%);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: var(--light-gray);
    line-height: 1.7;
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: translateY(-5px) rotate(5deg);
}

.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* Courses Section */
.courses {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.course-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.course-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.course-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light);
    flex: 1;
}

.course-card p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    color: var(--light-gray);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.course-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--darker);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Section */
.stats {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
}

.stats .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.stats-counter {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cta p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.main-footer {
    background-color: var(--darker);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

/* REDUCED FOOTER LOGO SIZE */
.footer-brand .logo {
    font-size: 1.4rem; /* Reduced from 1.8rem */
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 300px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group-combo {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 0;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.creator-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: var(--transition);
}

.creator-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--light-gray);
    font-size: 1.3rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray);
}

.social-icon:hover {
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        margin: 16px 0;
        width: 100%;
    }
    
    .nav-link {
        justify-content: center;
        padding: 1rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .features-grid,
    .courses-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-combo {
        flex-direction: column;
    }
    
    .form-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .stats-counter {
        font-size: 2.8rem;
    }
    
    .terminal-body {
        padding: 1.5rem;
    }
    
    .terminal-header span {
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

/* Selection Styling */
::selection {
    background-color: var(--primary);
    color: white;
}

/* Ensure no horizontal scroll */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Fix for dashboard layouts - Add to end of main.css */

/* Ensure proper viewport behavior */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fix for mobile overflow */
.dashboard-wrapper,
.admin-wrapper {
    min-height: 100vh;
    position: relative;
}

/* Mobile-first base styles */
@media (max-width: 1024px) {
    /* Hide desktop sidebars on mobile */
    .dashboard-sidebar,
    .admin-sidebar {
        display: none !important;
    }
    
    /* Show mobile headers */
    .mobile-header,
    .admin-mobile-header {
        display: flex !important;
    }
    
    /* Adjust main content */
    .dashboard-main,
    .admin-main {
        margin-left: 0 !important;
        padding-top: 80px; /* Space for fixed header */
    }
    
    /* Fix lesson cards on mobile */
    .lesson-card {
        margin: 0 0 1.5rem 0;
        border-radius: 12px;
    }
    
    /* Fix table scrolling */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix modal on mobile */
    .modal {
        margin: 1rem;
        width: calc(100% - 2rem);
        max-height: 80vh;
    }
}

/* Desktop styles */
@media (min-width: 1025px) {
    /* Hide mobile headers on desktop */
    .mobile-header,
    .admin-mobile-header {
        display: none !important;
    }
    
    /* Show desktop sidebars */
    .dashboard-sidebar,
    .admin-sidebar {
        display: flex !important;
    }
    
    /* Adjust main content */
    .dashboard-main,
    .admin-main {
        margin-left: 280px;
        padding-top: 0;
    }
}

/* Fix for mobile menu interactions */
.mobile-nav,
.admin-mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--darker);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active,
.admin-mobile-nav.active {
    left: 0;
}

.mobile-overlay,
.admin-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-overlay.active,
.admin-mobile-overlay.active {
    display: block;
}

/* Fix button sizes on mobile */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-block {
        width: 100%;
    }
}

/* Fix text overflow on mobile */
.lesson-card-title,
.stat-value,
.table td,
.table th {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Fix scroll behavior */
.dashboard-main,
.admin-main {
    overflow-x: hidden;
}

/* Ensure proper touch scrolling on mobile */
@media (max-width: 768px) {
    .lessons-grid,
    .stats-grid,
    .charts-section {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--light);
    border-radius: 1px;
    transition: var(--transition);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--darker);
    z-index: 1000;
    transition: left 0.3s ease;
    border-right: 1px solid var(--border);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-content {
    padding: 1rem 0;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* Add these animations to your main.css */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.admin-mobile-overlay.active {
    display: block;
}

.admin-mobile-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--darker);
    z-index: 1001;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 2px solid var(--border);
}

.admin-mobile-nav.active {
    left: 0;
}

.admin-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--darker);
    border-bottom: 2px solid var(--border);
    z-index: 999;
    padding: 0 1.5rem;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    background: rgba(30, 30, 46, 0.9);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 5.5rem;
    }
    
    .admin-mobile-header {
        display: flex;
    }
}