/* Chart Container Improvements */
.gauge-card canvas.gauge-chart {
    max-width: 100%;
    max-height: 200px;
    margin: 10px auto;
    display: block;
}

/* Chart Loading State */
.gauge-card.is-loading canvas.gauge-chart {
    opacity: 0.3;
    pointer-events: none;
}

/* Chart Container Styling */
.gauge-card[style*="height:320px"] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.gauge-card[style*="height:320px"] h4 {
    margin-bottom: 15px;
    text-align: center;
}

.gauge-card[style*="height:320px"] canvas {
    flex: 1;
    width: 100% !important;
    height: auto !important;
    max-height: 220px;
}

/* Responsive Chart Adjustments */
@media (max-width: 768px) {
    .gauge-card[style*="height:320px"] {
        height: 280px !important;
    }
    
    .gauge-card canvas.gauge-chart {
        max-height: 180px;
    }
}

/* Chart Error State */
.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Chart No Data State */
.chart-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
    font-size: 14px;
    text-align: center;
}
