/**
 * Hummingbird Charts CSS
 * 
 * Main CSS file for styling charts
 */

/* Global chart styles */
.hummingbird-city-charts-widget {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Chart container */
.hummingbird-chart-container {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px;
    position: relative;
}

/* Chart loader */
.hummingbird-chart-loader {
    align-items: center;
    background-color: rgba(255,255,255,0.7);
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.hummingbird-chart-loader span {
    background-color: #4e73df;
    border-radius: 50%;
    display: inline-block;
    height: 12px;
    margin: 0 4px;
    opacity: 0.6;
    width: 12px;
}

.hummingbird-chart-loader span:nth-child(1) {
    animation: pulse 1s infinite ease-in-out;
}

.hummingbird-chart-loader span:nth-child(2) {
    animation: pulse 1s infinite 0.2s ease-in-out;
}

.hummingbird-chart-loader span:nth-child(3) {
    animation: pulse 1s infinite 0.4s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .hummingbird-chart-metrics {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hummingbird-chart-metrics label {
        margin-bottom: 10px;
    }
    
    .hummingbird-chart-metrics .metrics-selector {
        width: 100%;
    }
} 