:root {
    --primary-color: #2E8B57;           /* Sea green — main brand */
    --primary-light: #e8f5ee;           /* Light green tint */
    --secondary-color: #4682B4;        /* Steel blue — accent */
    --secondary-light: #eaf2f8;        /* Light blue tint */
    --light-bg: #F5F7FA;               /* Cool off-white background */
    --white: #FFFFFF;
    --text-primary: #1a2332;           /* Deep slate — sharper contrast */
    --text-secondary: #64748b;         /* Slate grey */
    --card-bg: #FFFFFF;
    --card-border: #e2e8f0;            /* Softer grey border */
    --success-color: #27AE60;
    --warning-color: #e59500;          /* Warm amber */
    --shadow-color: rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --radius-lg: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.background-overlay {
    display: none; /* Disabled — bright design uses flat backgrounds */
}

/* Eco Monitoring Map Section */
.eco-map-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.eco-monitoring-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Work in Progress Banner */
.wip-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fef3cd, #fde68a);
    color: #92600a;
    text-align: center;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.85rem;
    z-index: 1000;
    border-bottom: 1px solid #f0d78c;
}

.wip-banner strong {
    display: inline-block;
    background: #92600a;
    color: #fef3cd;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wip-separator {
    margin: 0 8px;
    opacity: 0.4;
}

/* Sidebar & Layout — adjusted for banner */
.sidebar {
    position: fixed;
    top: 38px; /* Space for subtle banner */
    width: 200px;
    height: calc(100vh - 38px);
    background: var(--white);
    border-right: 1px solid var(--card-border);
    padding: 1.25rem 0.75rem;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
}

main {
    margin-left: 220px;
    padding: 2rem 1.5rem;
    padding-top: 3rem; /* Banner + breathing room */
    min-height: 100vh;
    max-width: 1400px;
}

/* Cards & Panels */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s ease;
}

.glass-panel:hover {
    box-shadow: var(--shadow-lg);
}

/* Buttons & Forms */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    font-size: 0.92rem;
}

.btn-primary:hover {
    background: #287A4F;
    box-shadow: 0 2px 8px rgba(46, 139, 87, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 0.92rem;
}

.btn-secondary:hover {
    background: var(--light-bg);
    border-color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--white);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.12);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    max-width: 420px;
    width: 90%;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* Welcome Section */
.welcome-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-md);
    max-width: 800px;
}

.welcome-section h2 {
    color: var(--text-primary);
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
}

.welcome-section p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.welcome-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.welcome-section a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    margin-bottom: 1.75rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Images */
.welcome-section img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-sep {
    color: var(--card-border);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.2s ease;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    background: var(--light-bg);
}

/* 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: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 250px;
        height: 100vh;
        z-index: 1002;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    main {
        margin-left: 0;
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .hero h1 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .glass-panel {
        padding: 1rem;
    }
    
    .hero {
        padding: 1.25rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .glass-panel {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .welcome-section {
        padding: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}