:root {
    --primary-color: #005f73;
    --sidebar-width: 320px;
}
body, html {
    margin: 0; padding: 0; height: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex; flex-direction: column;
}
/* Top Navigation with Tabs [cite: 71, 72] */
header {
    background-color: var(--primary-color); color: white; padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin-top: 15px;
    gap: 15px;
}

header nav ul li a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    background-color: transparent;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

header nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
}

header nav ul li a.active {
    background-color: white;
    color: #005f73;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

header nav a {
    color: white; text-decoration: none; font-weight: bold; padding: 5px 10px; border-radius: 4px;
}
header nav a:hover { background-color: rgba(255,255,255,0.2); }

/* Main Layout: Sidebar + Map [cite: 70] */
.app-container {
    display: flex; flex: 1; overflow: hidden;
}
/* Layer Control Sidebar [cite: 71] */
#sidebar {
    width: var(--sidebar-width); background: #f8f9fa; padding: 20px;
    overflow-y: auto; box-shadow: 2px 0 5px rgba(0,0,0,0.1); z-index: 1000;
}
.layer-group { margin-bottom: 20px; }
.layer-group h3 { font-size: 1.1em; border-bottom: 2px solid #ddd; padding-bottom: 5px; }
.toggle-container { margin: 8px 0; display: flex; align-items: center; gap: 10px; }

/* Map Container [cite: 70] */
#map {
    flex: 1; background-color: #e5e3df; /* Default OSM background color */
}

/* 📱 Mobile (<= 768px) */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;   /* stack vertically */
    }

    #sidebar {
        width: 100%;
        height: auto;
        max-height: 40%;
    }

    #map {
        height: 60vh;   /* fill rest */
    }

    nav ul {
        flex-wrap: wrap;
        gap: 8px;
    }
}
.warning-banner {
    margin: 5px 0;
    padding: 6px 10px;
    background: #eee;
    border-radius: 5px;
    font-size: 0.85rem;
}

.warning-red {
    background: #ff4d4f;
    color: white;
}

.warning-yellow {
    background: #faad14;
    color: black;
}

.warning-none {
    background: #52c41a;
    color: white;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f4f9fb;
    color: #333;
}
header {
    background: #005f73;
    color: #fff;
    padding: 20px;
    text-align: center;
}

h2 {
    color: #005f73;
}
ul {
    margin-left: 20px;
}
footer {
    text-align: center;
    background: #005f73;
    color: #fff;
}

.icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 700px;
    margin: auto;
}

/* ✅ Large button cards */
.card {
    background-color: #005f73;
    color: white;
    border-radius: 14px;
    padding: 10px 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    font-size: 18px;
    font-weight: bold;
}

.card:hover {
    background-color: #005a9e;
    transform: translateY(-5px);
}

/* ✅ icon */
.icon {
    font-size: 32px;
} 