@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #1a4d2e;
    --secondary-color: #4caf50;
    --accent-color: #e8f5e9;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --sidebar-width: 320px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

    :root {
        --primary-color: #1a4d2e;
        --secondary-color: #4caf50;
        --accent-color: #e8f5e9;
        --text-color: #333;
        --bg-light: #f4f7f6;
        --sidebar-width: 320px;
        --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }

    body {
        background-color: var(--bg-light);
        overflow-x: hidden;
    }

    /* Utilities */
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .bg-light {
        background: #f8f9fa;
    }

    .text-center {
        text-align: center;
    }

    .mb-4 {
        margin-bottom: 2rem;
    }

    .mt-3 {
        margin-top: 1rem;
    }

    .mt-5 {
        margin-top: 3rem;
    }

    .img-fluid {
        max-width: 100%;
        height: auto;
    }

    .rounded-shadow {
        border-radius: 12px;
        box-shadow: var(--shadow);
    }

    /* Navbar */
    .top-navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 50px;
        z-index: 3000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .brand {
        font-size: 1.3rem;
        font-weight: 600;
        color: white;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-links {
        display: flex;
        gap: 30px;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .nav-link:hover {
        color: white;
    }

    /* Hero */
    #home {
        height: 100vh;
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1542601906990-b4d3fb778b09?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .btn-cta {
        display: inline-block;
        padding: 15px 35px;
        background: var(--secondary-color);
        color: white;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 600;
        transition: transform 0.3s;
    }

    .btn-cta:hover {
        transform: translateY(-3px);
        background: #43a047;
    }

    /* About Section */
    .about-row {
        display: flex;
        align-items: center;
        gap: 50px;
    }

    .col-text {
        flex: 1;
    }

    .col-image {
        flex: 1;
    }

    .section-title {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .feature-list {
        list-style: none;
        margin-top: 20px;
    }

    .feature-list li {
        margin-bottom: 10px;
        font-size: 1.1rem;
        color: #555;
    }

    .feature-list i {
        color: var(--secondary-color);
        margin-right: 10px;
    }

    /* Map Section (Grid Layout) */
    .map-layout-grid {
        display: grid;
        grid-template-columns: 3fr 1fr;
        /* Map gets more space */
        gap: 20px;
        height: 600px;
        /* Fixed height for dashboard feeling */
    }

    /* Map Card */
    .map-container-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
        position: relative;
        border: 1px solid #ddd;
    }

    #map {
        width: 100%;
        height: 100%;
    }

    /* Sidebar Card */
    .map-sidebar-card {
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow);
        border: 1px solid #ddd;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .sidebar-tabs {
        display: flex;
        background: #f1f3f5;
        border-bottom: 1px solid #ddd;
    }

    .tab-btn {
        flex: 1;
        border: none;
        background: none;
        padding: 12px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #777;
        cursor: pointer;
    }

    .tab-btn.active {
        background: white;
        color: var(--primary-color);
        border-top: 3px solid var(--primary-color);
    }

    .sidebar-content {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
    }

    .tab-content h4 {
        font-size: 1rem;
        margin-bottom: 15px;
        color: var(--primary-color);
        border-bottom: 2px solid #eee;
        padding-bottom: 5px;
    }

    /* Layer List */
    .layer-item {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    .legend-box {
        background: #f9f9f9;
        padding: 10px;
        border-radius: 6px;
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        display: inline-block;
    }

    /* Info Cards */
    .info-card {
        background: #f8f9fa;
        padding: 10px;
        border-radius: 6px;
        margin-bottom: 10px;
        display: flex;
        justify-content: space-between;
    }

    /* Admin Specific */
    .compact-form input,
    .compact-form select {
        width: 100%;
        padding: 8px;
        margin-bottom: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    .export-actions {
        display: flex;
        gap: 10px;
    }

    .btn-xs {
        padding: 4px 10px;
        font-size: 0.75rem;
        border: 1px solid #ddd;
        background: white;
        border-radius: 4px;
        cursor: pointer;
    }

    /* Contact */
    .contact-grid {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
        flex-wrap: wrap;
    }

    .contact-card {
        width: 250px;
        padding: 30px;
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow);
        text-align: center;
        transition: transform 0.3s;
    }

    .contact-card:hover {
        transform: translateY(-5px);
    }

    .contact-card i {
        font-size: 2rem;
        color: var(--secondary-color);
        margin-bottom: 15px;
    }


    /* Responsive */
    @media (max-width: 900px) {
        .map-layout-grid {
            grid-template-columns: 1fr;
            height: auto;
        }

        .map-container-card {
            height: 400px;
        }

        .map-sidebar-card {
            height: 400px;
        }

        .about-row {
            flex-direction: column;
        }

        .hero-content h1 {
            font-size: 2.5rem;
        }

        .top-navbar {
            padding: 0 20px;
        }

        .nav-links {
            display: none;
        }

        /* Basic hidden menu for now */
    }
}