body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1000px;
    padding: 30px;
    margin: 30px 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: white;
}

h1 {
    margin: 0 0 20px;
}

.search-box {
    margin-bottom: 20px;
}

input {
    padding: 10px;
    width: 220px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00c853, #64dd17);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
}

button:hover {
    transform: scale(1.05);
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    align-items: start;
}

.aqi-box,
.weather {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: white;
    transition: 0.3s;
}

.aqi-box {
    text-align: center;
}

.weather {
    text-align: left;
}

.aqi-box:hover,
.weather:hover {
    transform: translateY(-5px);
}

.weather h3,
.aqi-legend h3,
.summary-card h3 {
    text-align: center;
}

.weather p {
    margin: 12px 0;
    line-height: 1.6;
    text-align: left;
}

.aqi-box p {
    margin: 12px 0;
}

#aqi {
    font-size: 80px;
    font-weight: bold;
    margin: 10px 0 5px;
}

#quality {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 15px;
}

#station,
#updated {
    font-size: 13px;
    color: #e0e0e0;
    margin: 6px 0;
}

.bar {
    height: 20px;
    background: linear-gradient(to right, green, yellow, orange, red, purple);
    border-radius: 10px;
    position: relative;
    margin: 15px 0 20px;
}

#indicator {
    width: 6px;
    height: 20px;
    background: black;
    position: absolute;
    top: 0;
    left: 0%;
    transform: translateX(-50%);
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 20px 0;
}

.chart-box {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 0;
}

#gaugeChart {
    width: 100% !important;
    height: 220px !important;
    display: block;
}

#aqiChart {
    width: 100% !important;
    height: 300px !important;
    display: block;
}

#map {
    height: 260px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.aqi-legend {
    margin-top: 20px;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    text-align: left;
}

.color {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.good {
    background: #00e400;
}

.moderate {
    background: #ffff00;
}

.sensitive {
    background: #ff7e00;
}

.unhealthy {
    background: #ff0000;
}

.very {
    background: #8f3f97;
}

.hazardous {
    background: #7e0023;
}

.summary-card {
    margin-top: 10px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.summary-card h3 {
    margin: 0 0 15px;
}

.summary-card p {
    margin: 10px 0;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.full-chart {
    margin-top: 20px;
}

canvas {
    margin-top: 0;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    input {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search-box {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
    }
}