#wpar-air-quality {
    font-family: sans-serif;
    max-width: 500px;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    background: #f9f9f900;
    color: #333;
    text-align: center;
    overflow: hidden;
}

.wpar-loading {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}


.wpar-aqi {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.aqi-icon {
    width: 30px;
    height: 30px;
}

.wpar-footer {
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    line-height: 1.5;
    word-wrap: break-word;
}

.wpar-footer span {
    display: inline;
}
.wpar-footer .station {
    display: block;
    margin-top: 5px;
}

/* --- Color classes for AQI TEXT --- */
/* Applied to the span around the AQI text */
/* Uses the color scheme you requested */
.aqi-text-very-good { /* 0-25: ดีมาก -> สีเขียวเข้ม (น้ำทะเล) */
    color: #16A085; /* Teal (Updated to match SVG) */
}
.aqi-text-good { /* 26-50: ดี -> สีเขียว */
    color: #2ECC71; /* Green */
}
.aqi-text-moderate { /* 51-100: ปานกลาง -> สีเหลือง */
    color: #F1C40F; /* Yellow */
}
.aqi-text-unhealthy { /* 101-150: มีผลกระทบ -> สีส้ม */
    color: #E67E22; /* Orange */
}
.aqi-text-very-unhealthy { /* 151-200: มีผลกระทบมาก -> สีแดง */
    color: #E74C3C; /* Red */
}
.aqi-text-hazardous { /* 201+: อันตราย -> สีม่วง */
    color: #9B59B6; /* Purple */
}
/* You might want a separate class for > 300 if you use Maroon SVG */
/* .aqi-text-extreme-hazardous { color: #78281F; } */

/* --- End Color classes for AQI TEXT --- */


/* Responsive Design */
@media (max-width: 576px) {
    #wpar-air-quality {
        padding: 15px;
    }
    .wpar-aqi {
        font-size: 20px;
        gap: 8px;
    }
     .aqi-icon {
        width: 25px;
        height: 25px;
     }
    .wpar-footer {
        font-size: 12px;
    }
    .wpar-footer .pm10, .wpar-footer .time {
         display: block;
         margin-bottom: 3px;
    }
     .wpar-footer br {
        display: none;
     }
     .wpar-footer .station {
        margin-top: 8px;
     }
}

#wpar-air-quality button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 14px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#wpar-air-quality button:hover {
    background: #45a049;
}