:root {
    --primary-color: #1b5e20;
    --secondary-color: #2e7d32;
    --accent-color: #81c784;
    --text-color: #2e2e2e;
    --bg-color: #f1f8e9;
    --white: #ffffff;
    --danger: #d32f2f;
    --success: #388e3c;
    --warning: #fbc02d;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    color: var(--text-color);
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f0f0f0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

/* Responsive Navbar */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #f0f0f0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        border-radius: 0;
        padding: 12px 16px;
    }

    .navbar .container {
        flex-wrap: wrap;
    }
}

/* Content */
.content {
    flex: 1;
    padding: 24px 0;
}

/* Cards & Sections */
.card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* Mobile Responsive Tables -> Cards */
@media screen and (max-width: 600px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    tr {
        margin-bottom: 16px;
        border: 1px solid #eee;
        border-radius: var(--border-radius);
        background: white;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
        min-height: 1.5rem;
        border-bottom: 1px solid #f8f9fa;
        padding: 8px 0 !important;
    }

    td:last-child {
        border-bottom: none;
    }

    td:before {
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
    }

    /* Specific adjustments for mobile grid stats */
    .stats-grid {
        flex-direction: column;
    }

    /* Layouts */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .brand img {
        height: 60px !important;
    }

    .header-headline {
        font-size: 0.9rem !important;
        /* Slightly smaller on mobile but visible */
    }

    /* City Filter Responsive */
    .city-filter-container {
        border-radius: 20px !important;
        padding: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .city-filter-icon {
        display: none !important;
    }

    .city-filter-select {
        text-align: center !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        height: auto !important;
        background-position: right 5px center !important;
    }

    /* Hero Section Responsive */
    .hero-header-row {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .hero-image-container {
        width: 100% !important;
        max-width: 200px !important;
    }

    .hero-text-container {
        padding-right: 0 !important;
        text-align: center !important;
    }

    .hero-text-container h1 {
        font-size: 2.2rem !important;
    }
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccd;
    border-radius: 8px;
    appearance: none;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.98) translateY(0);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 15px rgba(27, 94, 32, 0.35);
}

.btn i[data-lucide], .btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 500;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

/* City Filter Base Styles */
.city-filter-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}

.city-filter-container {
    position: relative;
    background: #ffffff;
    border-radius: 50px;
    padding: 6px 15px 6px 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

.city-filter-icon {
    background: #ecfdf5;
    color: #10b981;
    min-width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 12px;
}

.city-filter-select {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    outline: none;
    padding: 10px 0;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2310b981%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px auto;
}