﻿/* 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);
}

.navbar-custom .dropdown-menu {
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.navbar-custom .dropdown-item {
    color: var(--text-primary);
}

.navbar-custom .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* 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 */
.admission-banner-card {
    background: white !important;
    border: 2px solid var(--primary) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-lg) !important;
}

.admission-banner-card::before {
    background: linear-gradient(90deg, var(--primary), var(--accent)) !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;
    }
}