/* Distinct Model School CSS - Enhanced with Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Color Variables - Green Theme */
:root {
    --primary-green: #2d5a27;
    --secondary-green: #4a7c59;
    --light-green: #7fb069;
    --accent-green: #a7c957;
    --pale-green: #f1f8e9;
    --dark-green: #1b3a17;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1001;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Navigation Styles */
.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

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

.nav a.active {
    background-color: var(--accent-green);
    color: var(--dark-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 90, 39, 0.8), rgba(74, 124, 89, 0.8)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234a7c59" width="1200" height="600"/><polygon fill="%232d5a27" points="0,600 1200,400 1200,600"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--accent-green);
    color: var(--dark-green);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--light-green);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-green);
    border-radius: 2px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-green);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--gray);
    line-height: 1.6;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--pale-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-green);
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

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

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

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

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

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

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

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

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.table th {
    background: var(--primary-green);
    color: var(--white);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.table tr:hover {
    background: var(--pale-green);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--info);
    color: #0c5460;
}

/* Dashboard Styles */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--primary-green);
    color: var(--white);
    padding: 2rem 0;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav a {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2rem;
    transition: background 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--secondary-green);
}

.main-content {
    padding: 2rem;
    background: var(--light-gray);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid;
}

.stat-card.primary {
    border-color: var(--primary-green);
}

.stat-card.success {
    border-color: var(--success);
}

.stat-card.warning {
    border-color: var(--warning);
}

.stat-card.info {
    border-color: var(--info);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    display: block;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-green);
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-green);
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-green);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav li {
        width: 100%;
    }
    
    .nav a {
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: left;
    }
    
    .nav a:hover {
        background-color: var(--secondary-green);
        transform: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Admin Dashboard Mobile Styles */
    .admin-container {
        display: flex;
        flex-direction: column;
    }
    
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--primary-green);
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .admin-sidebar.mobile-open {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    /* Mobile overlay for sidebar */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .header-content {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    /* Improve touch targets */
    .nav a {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        padding: 0.8rem;
        font-size: 1.3rem;
    }
}

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

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }



/* Enhanced Form Input Styles */
.form-input,
.form-select,
.form-textarea {
    border: 2px solid var(--gray);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--dark-gray);
    background-color: var(--white);
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
    width: 100%;
    min-height: 48px; /* Minimum touch target size */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.2);
    background-color: var(--pale-green);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

/* Enhanced Button Styles */
.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px; /* Minimum touch target size */
    min-width: 120px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    outline: none;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(to right, var(--dark-green), var(--primary-green));
    color: var(--white);
}

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

.btn-outline:hover,
.btn-outline:focus {
    background: var(--accent-green);
    color: var(--white);
    border-color: var(--accent-green);
}

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

.btn-success:hover,
.btn-success:focus {
    background-color: #218838;
    color: var(--white);
}

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

.btn-danger:hover,
.btn-danger:focus {
    background-color: #c82333;
    color: var(--white);
}

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

.btn-warning:hover,
.btn-warning:focus {
    background-color: #e0a800;
    color: var(--dark-gray);
}

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

.btn-info:hover,
.btn-info:focus {
    background-color: #138496;
    color: var(--white);
}

/* Mobile-specific form and button improvements */
@media (max-width: 768px) {
    .form-input,
    .form-select,
    .form-textarea {
        padding: 1.2rem 1.5rem;
        font-size: 1.2rem;
        min-height: 52px;
    }
    
    .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
        min-height: 52px;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Improve form layout on mobile */
    .form-group {
        margin-bottom: 2rem;
    }
    
    .form-label {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .form-input,
    .form-select,
    .form-textarea {
        padding: 1.3rem 1.6rem;
        font-size: 1.3rem;
        min-height: 56px;
    }
    
    .btn {
        padding: 1.3rem 2rem;
        font-size: 1.3rem;
        min-height: 56px;
    }
}

/* General Link Styles */
a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Card Enhancements */
.card {
    border: 1px solid var(--pale-green);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.card:hover {
    border-color: var(--accent-green);
}

/* Section Title Enhancements */
.section-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    background: linear-gradient(to right, var(--accent-green), var(--light-green));
}

/* Utility for spacing */
.my-4 { margin-top: 2rem; margin-bottom: 2rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }




/* Mobile Menu Specific Styles */
.mobile-menu-btn {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Show on smaller screens */
    }

    .nav {
        flex-direction: column;
        width: 100%;
        background: var(--primary-green);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem 0;
        border-top: 1px solid var(--secondary-green);
        display: none; /* Hidden by default */
    }

    .nav.mobile-open {
        display: flex; /* Show when mobile-open class is active */
    }

    .nav li {
        width: 100%;
        text-align: center;
    }

    .nav a {
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .header-content {
        flex-wrap: wrap;
    }
}




/* Student Gallery Styles */
.students-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.student-image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
}

.student-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

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

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

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(45, 90, 39, 0.9));
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.student-image-card:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-green);
}

.image-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Enhanced Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-green);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 0 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav a {
        display: block;
        padding: 1rem 2rem;
        color: var(--white);
        text-decoration: none;
        transition: background-color 0.3s ease;
        font-weight: 500;
    }
    
    .nav a:hover,
    .nav a.active {
        background-color: rgba(255,255,255,0.1);
        color: var(--accent-green);
    }
    
    .students-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .student-image-card {
        margin: 0 auto;
        max-width: 350px;
    }
    
    .image-overlay {
        position: static;
        transform: none;
        background: var(--primary-green);
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .students-gallery {
        gap: 1rem;
    }
    
    .student-image-card {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@media (max-width: 768px) {
    .header-content {
        position: relative;
    }
}


/* Admin Dashboard Responsive Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.admin-sidebar {
    width: 280px;
    background: var(--primary-green);
    color: var(--white);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.admin-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: between;
    align-items: center;
    flex-wrap: wrap;
}

.admin-header h1 {
    color: var(--primary-green);
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.admin-header .date-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

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

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-green), var(--light-green));
    border-radius: 50%;
    transform: translate(30px, -30px);
    opacity: 0.1;
}

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

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

.stat-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--accent-green);
    opacity: 0.7;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.card-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.action-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.action-btn i {
    font-size: 1.2rem;
}

/* Mobile Responsive Styles for Admin Dashboard */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-main.sidebar-open {
        margin-left: 0;
    }
    
    .admin-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 1rem;
        justify-content: center;
    }
    
    .card-header {
        padding: 1rem 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .sidebar-header {
        padding: 1.5rem 1rem;
    }
    
    .sidebar-header h3 {
        font-size: 1.3rem;
        margin-right: 3rem;
    }
}

@media (max-width: 480px) {
    .admin-main {
        padding: 0.5rem;
    }
    
    .admin-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .admin-header h1 {
        font-size: 1.3rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .action-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Sidebar Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

@media (max-width: 768px) {
    .sidebar-overlay {
        display: block;
    }
}

/* Enhanced Navigation Styles */
.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--accent-green);
    padding-left: 2rem;
}

.sidebar-nav i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Table Responsive Styles */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: var(--primary-green);
    color: var(--white);
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Chart Container Responsive */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 200px;
    }
}


/* Additional Styles for New Pages */

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

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.modal-form {
    padding: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

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

.btn-primary:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Table Controls */
.table-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-input,
.filter-select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit,
.btn-view,
.btn-delete {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

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

.btn-view {
    background: #17a2b8;
    color: var(--white);
}

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

.btn-delete {
    background: #dc3545;
    color: var(--white);
}

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

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Nigerian Education System Styles */
.education-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.education-level {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-level:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.education-level h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-level p {
    font-weight: 600;
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

.education-level ul {
    list-style: none;
    padding: 0;
}

.education-level li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
    padding-left: 1.5rem;
}

.education-level li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.education-level li:last-child {
    border-bottom: none;
}

/* Utilization Bar */
.utilization-bar {
    position: relative;
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    min-width: 80px;
}

.utilization-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.utilization-low {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.utilization-medium {
    background: linear-gradient(90deg, #ffc107, #ffcd39);
}

.utilization-high {
    background: linear-gradient(90deg, #dc3545, #e55353);
}

.utilization-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: #212529;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Adjustments for New Pages */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-form {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .table-controls {
        flex-direction: column;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .education-system-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .education-level {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-edit,
    .btn-view,
    .btn-delete {
        width: 100%;
        height: auto;
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .education-level h4 {
        font-size: 1.1rem;
    }
    
    .utilization-bar {
        min-width: 60px;
        height: 16px;
    }
    
    .utilization-text {
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .admin-sidebar,
    .mobile-menu-btn,
    .action-buttons,
    .quick-actions,
    .modal {
        display: none !important;
    }
    
    .admin-main {
        margin-left: 0 !important;
        padding: 1rem !important;
    }
    
    .admin-header {
        background: none !important;
        box-shadow: none !important;
        border-bottom: 2px solid #000;
    }
    
    .dashboard-card {
        box-shadow: none !important;
        border: 1px solid #000;
        margin-bottom: 2rem;
    }
    
    .card-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}



/* Dashboard Sidebar Styles */
.admin-container,
.student-container,
.parent-container,
.teacher-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar,
.student-sidebar,
.parent-sidebar,
.teacher-sidebar {
    background: var(--primary-green);
    color: var(--white);
    padding: 0;
    position: relative;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--secondary-green);
    position: relative;
}

.sidebar-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.sidebar-header p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-nav {
    padding: 0;
}

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

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

.sidebar-nav a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 48px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--secondary-green);
    padding-left: 2rem;
}

.sidebar-nav a i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.admin-main,
.student-main,
.parent-main,
.teacher-main {
    padding: 2rem;
    background: var(--light-gray);
    overflow-x: auto;
}

.admin-header,
.student-header,
.parent-header,
.teacher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pale-green);
}

.admin-header h1,
.student-header h1,
.parent-header h1,
.teacher-header h1 {
    color: var(--primary-green);
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.date-time {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Stats Grid for Dashboards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid;
    position: relative;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.primary {
    border-color: var(--primary-green);
}

.stat-card.success {
    border-color: var(--success);
}

.stat-card.warning {
    border-color: var(--warning);
}

.stat-card.info {
    border-color: var(--info);
}

.stat-card.danger {
    border-color: var(--danger);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-green);
    display: block;
    margin-bottom: 0.5rem;
}

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

.stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

.action-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.action-btn i {
    font-size: 1rem;
}

/* Mobile Dashboard Styles */
@media (max-width: 768px) {
    .admin-container,
    .student-container,
    .parent-container,
    .teacher-container {
        grid-template-columns: 1fr;
        position: relative;
    }
    
    .admin-sidebar,
    .student-sidebar,
    .parent-sidebar,
    .teacher-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .admin-sidebar.mobile-open,
    .student-sidebar.mobile-open,
    .parent-sidebar.mobile-open,
    .teacher-sidebar.mobile-open {
        left: 0;
    }
    
    .admin-main,
    .student-main,
    .parent-main,
    .teacher-main {
        padding: 1rem;
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .admin-header,
    .student-header,
    .parent-header,
    .teacher-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: relative;
    }
    
    .admin-header h1,
    .student-header h1,
    .parent-header h1,
    .teacher-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Add mobile menu button to dashboard headers */
    .mobile-dashboard-menu {
        position: absolute;
        top: 0;
        left: 0;
        background: none;
        border: none;
        color: var(--primary-green);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-dashboard-menu:hover {
        background-color: var(--pale-green);
    }
}

@media (max-width: 480px) {
    .admin-main,
    .student-main,
    .parent-main,
    .teacher-main {
        padding: 0.5rem;
    }
    
    .admin-header h1,
    .student-header h1,
    .parent-header h1,
    .teacher-header h1 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .stat-card {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .sidebar-nav a {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .sidebar-header {
        padding: 1.5rem 1.2rem 0.8rem;
    }
    
    .sidebar-header h3 {
        font-size: 1.2rem;
    }
}

