/* New Elegant & Minimalist Theme */
:root {
    --primary-blue: #0077c2; /* Softer, elegant blue */
    --light-bg: #fcfdff;    /* Very light, almost white background */
    --dark-heading: #2c3e50; /* Charcoal gray for headings */
    --text-color: #34495e;   /* Darker text for readability */
    --card-bg: #ffffff;
    --border-light: #e0e6ed; /* Lighter border color */
    --shadow-subtle: rgba(0, 0, 0, 0.03); /* Very subtle shadow */
    --shadow-hover: rgba(0, 0, 0, 0.08);  /* Slightly more visible on hover */
    --dark-border: #34495e; /* Added for a black/dark border */
}

.province-card {
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #bdd5fd; /* Darker border for province cards */
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.province-header {
    background:#294BBB;
    color: #fff;
    font-weight: 500;
    text-align: center;
    padding: 6px 10px;
    font-size: 18px;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(0,0,0,0.2); /* Darker subtle border */
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.city-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-radius: 3px;
    /*border: 1px solid rgba(0,0,0,0.2);*/
    background-color: #e4effd;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    color: #000;
    text-decoration: none;
}

.city-box:hover {
    background: #CFE2FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px var(--shadow-subtle);
}

.index-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    padding: 2px 0px;
    border-radius: 15px;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.aqi-good { background-color: #00B050; }
.aqi-Satisfactory { background-color: #92D050;}
.aqi-moderate { background-color: #FFFF00;}
.aqi-unhealthy-sg { background-color: #ED7D31;}
.aqi-unhealthy { background-color: #EE0000;}
.aqi-very-unhealthy { background-color: #7030A0;}
.aqi-hazardous { background-color: #C00000;}


/* Mobile view */
@media (max-width: 768px) {

    .province-card {
        margin-bottom: 20px;
    }
    .card-body {
        padding: 15px;
    }
    .city-box {
        padding: 10px 12px;
        font-size: 15px;
    }
    .province-header {
        font-size: 17px;
        padding: 12px;
    }
}

@keyframes flash {
    0% { background: #e6f7ff; }
    50% { background: transparent; }
    100% { background: #e6f7ff; }
}

/*-----------------------------------------------------------------------------------------*/
.navbar
{
    /* background-color: #dfe4e8; */
    color: #294CB4;
    padding: 7px 10px;
    display: flex
;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    /* gap: 20px; */
}
.heading-title {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-family: Arial, sans-serif;
    margin-bottom: 0.15rem;
}

.underline {
    width: 320px;
    height: 2px;
    background-color: #0033cc;
    margin-bottom: 0.25rem;
}

.heading-subtitle {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
    margin-bottom: 0;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.navbar1 {
    /*    background-color: #2c3e50; */
    /*    color: white; */
    /*    padding: 20px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /*    gap: 5px; */
    width: 100%;
    /*border:1px solid #ff0000*/
}

.box {
    /*background: #ff0000;*/
    /*border: 1px solid #fff;*/
    padding: 1px;
    font-size: 11px;
    /*flex: 1;*/
    text-align: center;
    /*min-width: 150px;*/
}

.index-badge {
    display: flex;
    align-items: center;
    gap: 6px;   /* space between dot and value */
}

.index-badge .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;   /* don’t let it shrink */
}

.index-badge .avg-aqi-val {
    display: inline-block;
    width: 40px;          /* fixed space for digits */
    text-align: center;   /* center the numbers */
    font-weight: bold;
}