:root {
    --font-main: 'Inter', sans-serif;
    --color-pm1: #6f42c1;
    --color-pm25: #dc3545; /* Red */
    --color-pm5: #6f42c1; /* Purple */
    --color-pm10: #20c997; /* Teal */    --color-temp: #fd7e14;
    --color-humid: #0aa2c0;
}

body {
    font-family: var(--font-main);
    background-color: #f4f6f9;
    color: #333;
}

/* Card Styling */
.metric-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

/* Uniform Top Borders (Fixed Height for all) */
.status-good { border-top: 5px solid #198754; }
.status-moderate { border-top: 5px solid #ffc107; }
.status-unhealthy { border-top: 5px solid #dc3545; }
.status-temp { border-top: 5px solid #fd7e14; }
.status-humid { border-top: 5px solid #0d6efd; }

/* Gauge Container - Reduced height */
.gauge-wrapper {
    position: relative;
    height: 120px; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-value-overlay {
    position: absolute;
    top: 65%; /* Adjusted for smaller gauge */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.value-text {
    font-size: 1.75rem; /* Smaller font for smaller gauge */
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

.unit-text {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Mobile Specific Tweaks */
@media (max-width: 576px) {
    .value-text {
        font-size: 1.5rem;
    }
    .gauge-wrapper {
        height: 110px;
    }
    .chart-container {
        height: 250px;
    }
    h2.h4 {
        font-size: 1.15rem;
    }
    .refresh-btn-container {
        width: 100%;
        margin-top: 0.5rem;
    }
    .refresh-btn-container .btn {
        width: 100%;
    }
}

