/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* AQI Widget Styles */
.aqi-widget {
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.aqi-widget-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.aqi-widget-main {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.aqi-widget-pollutant {
    flex: 0 0 auto;
    min-width: 140px;
}

.aqi-widget-header {
    padding: 8px 16px !important;
}

.aqi-periksa-bg-navy {
    background-color: #1a365d;
}

.aqi-periksa-teal {
    color: #0d9488;
}

.aqi-periksa-bg-teal-10 {
    background-color: rgba(13, 148, 136, 0.1);
}

/* AQI Color Classes */
.aqi-good {
    background-color: #00e400;
}

.aqi-moderate {
    background-color: #ffff00;
}

.aqi-unhealthy-sensitive {
    background-color: #ff7e00;
}

.aqi-unhealthy {
    background-color: #ff0000;
}

.aqi-very-unhealthy {
    background-color: #8f3f97;
}

.aqi-hazardous {
    background-color: #7e0023;
}

/* AQI Indicator Colors */
.aqi-indicator.good {
    background: linear-gradient(135deg, #00e400 0%, #00c400 100%);
    color: #1a365d;
}

.aqi-indicator.moderate {
    background: linear-gradient(135deg, #ffff00 0%, #ffd700 100%);
    color: #1a365d;
}

.aqi-indicator.unhealthy-sensitive {
    background: linear-gradient(135deg, #ff7e00 0%, #ff6b00 100%);
    color: white;
}

.aqi-indicator.unhealthy {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
}

.aqi-indicator.very-unhealthy {
    background: linear-gradient(135deg, #8f3f97 0%, #7a3380 100%);
    color: white;
}

.aqi-indicator.hazardous {
    background: linear-gradient(135deg, #7e0023 0%, #5a001a 100%);
    color: white;
}

/* AQI Text Sizes */
.aqi-text-10 {
    font-size: 10px;
}

.aqi-text-8 {
    font-size: 8px;
}

.aqi-text-7 {
    font-size: 7px;
}

.aqi-text-9 {
    font-size: 9px;
}

/* AQI Responsive Styles */
@media (max-width: 576px) {
    .aqi-widget-container {
        flex-direction: column;
        gap: 16px;
    }

    .aqi-widget-main {
        min-width: 100%;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .aqi-widget-pollutant {
        min-width: 100%;
        text-align: left !important;
        padding-left: 0 !important;
        border-left: none !important;
        border-top: 1px solid #e5e7eb;
        padding-top: 12px !important;
    }

    .aqi-widget-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
    }

    .aqi-indicator {
        width: 72px !important;
        height: 72px !important;
    }

    .aqi-indicator span:first-child {
        font-size: 28px !important;
    }

    .aqi-indicator span:last-child {
        font-size: 9px !important;
    }

    #aqi-status {
        font-size: 14px !important;
    }

    #aqi-location {
        font-size: 10px !important;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .aqi-widget-container {
        gap: 16px;
    }

    .aqi-widget-main {
        min-width: 200px;
    }

    .aqi-widget-pollutant {
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .aqi-widget-bar-labels {
        font-size: 8px !important;
    }

    #aqi-advice {
        font-size: 10px !important;
        padding: 8px 12px !important;
    }
}

@media (max-width: 480px) {
    .aqi-widget-bar-labels {
        display: none;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .aqi-widget-container {
        gap: 24px;
    }

    .aqi-indicator {
        width: 60px !important;
        height: 60px !important;
    }

    .aqi-indicator span:first-child {
        font-size: 22px !important;
    }
}

/* Desktop optimization */
@media (min-width: 1025px) {
    .aqi-widget-container {
        gap: 28px;
    }

    .aqi-widget-pollutant {
        min-width: 160px;
    }
}
