﻿/* Modern Green Theme - Enhanced with Proper Backgrounds */
:root {
    /* Primary Colors */
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #66bb6a;
    --secondary: #4caf50;
    --accent: #81c784;
    
    /* Text Colors */
    --text-primary: #1b5e20;
    --text-secondary: #2e7d32;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-light: #e8f5e9;
    --bg-dark: #1b5e20;
    
    /* Gradient Colors */
    --gradient-start: #2e7d32;
    --gradient-end: #1b5e20;
    --gradient-light: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    --gradient-footer: linear-gradient(135deg, #1b5e20 0%, #0d3c10 100%);
    
    /* Semantic Colors */
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #00bcd4;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(46, 125, 50, 0.1);
    --shadow-md: 0 4px 8px rgba(46, 125, 50, 0.15);
    --shadow-lg: 0 8px 16px rgba(46, 125, 50, 0.2);
    
    /* Borders */
    --border-color: #c8e6c9;
    --border-radius: 8px;
    
    /* Header/Footer */
    --header-bg: var(--gradient-primary);
    --footer-bg: var(--gradient-footer);
}

/* Theme-specific overrides */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
}

/* Header Styles */
.school-header {
    background: var(--header-bg) !important;
    color: var(--text-light) !important;
    border-bottom: 3px solid var(--primary-light);
}

.school-header-text {
    color: var(--text-light) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.header-tagline {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark) !important;
    color: var(--text-light) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar */
.navbar-custom {
    background: var(--primary) !important;
    border-bottom: 2px solid var(--primary-light);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
}


/* Scroll Message */
.scroll-message-bar {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-bottom: 2px solid var(--accent);
}

.scroll-highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
}

/* Content Cards */
.content-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-title {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Footer */
.footer {
    background: var(--footer-bg) !important;
    color: white !important;
}

.footer-heading {
    color: white !important;
    border-bottom: 2px solid var(--accent);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-link:hover {
    color: white !important;
}

.footer-social-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-icon:hover {
    background: var(--accent) !important;
    border-color: var(--accent);
}

/* Admission Banner */
/* ========== COMPACT ADMISSION BANNER ========== */
.admission-banner-section {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.admission-banner-card {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

    .admission-banner-card:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12) !important;
    }

    /* Left content */
    .admission-banner-card .col-lg-8 {
        background: var(--bg-primary, #ffffff) !important;
    }

    /* Compact title */
    .admission-banner-card h4 {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

.academic-year {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* Compact detail cards */
.admission-detail-card {
    padding: 0.75rem !important;
    min-height: auto !important;
    border-left: 3px solid currentColor !important;
}

    .admission-detail-card .fas {
        font-size: 1rem !important;
    }

    .admission-detail-card .text-dark {
        font-size: 0.95rem !important;
    }

/* Alert */
.admission-banner-card .alert-warning {
    padding: 0.5rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

/* CTA section */
.admission-banner-card .col-lg-4 {
    background: var(--primary) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.admission-banner-card .btn-light {
    background: #ffffff !important;
    color: var(--primary) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

    .admission-banner-card .btn-light:hover {
        background: #f8f9fa !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .admission-banner-section {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .admission-banner-card {
        border-radius: 8px !important;
    }

        .admission-banner-card .col-lg-8,
        .admission-banner-card .col-lg-4 {
            padding: 1rem !important;
        }

        .admission-banner-card .col-lg-4 {
            border-left: none !important;
            border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        }

        .admission-banner-card h4 {
            font-size: 1.1rem !important;
        }

    .admission-detail-card {
        margin-bottom: 0.5rem !important;
    }

    .admission-banner-card .row {
        margin: 0 !important;
    }
}
/* Quick Stats */
.quick-stats-section {
    background: var(--bg-light) !important;
}

/* Notices & Events */
.notice-date,
.event-date {
    background: var(--primary) !important;
    color: white !important;
}

/* Social Links */
.social-link {
    color: white !important;
    opacity: 0.9;
}

.social-link:hover {
    color: var(--accent) !important;
    opacity: 1;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color);
}

/* Alerts */
.alert-primary {
    background: var(--bg-light) !important;
    border-color: var(--primary-light) !important;
    color: var(--text-primary) !important;
}

/* Tables */
.table th {
    background: var(--bg-light) !important;
    color: var(--primary) !important;
}

/* Pagination */
.page-link {
    color: var(--primary) !important;
}

.page-link:hover {
    background: var(--bg-light) !important;
    border-color: var(--primary) !important;
}

.page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
}

/* Checkboxes and Radios */
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .school-header {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-custom .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .content-card {
        padding: 1rem;
    }
}