/* Usage Metrics Dashboard Styles */

/* Expand content to use full available width - only on usage metrics page */
body:has(#content.usage-metrics) .md-content__inner,
body:has(.stats-grid) .md-content__inner {
    max-width: none !important;
    margin: 0 !important;
}

body:has(#content.usage-metrics) .md-content__inner > article,
body:has(.stats-grid) .md-content__inner > article {
    padding: 0 2rem;
}

@media screen and (min-width: 76.25em) {
    body:has(#content.usage-metrics) .md-content__inner > article,
    body:has(.stats-grid) .md-content__inner > article {
        padding: 0 4rem;
    }
}

@media screen and (min-width: 100em) {
    body:has(#content.usage-metrics) .md-content__inner > article,
    body:has(.stats-grid) .md-content__inner > article {
        padding: 0 6rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.chart-container canvas {
    max-height: 400px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.2rem;
}

.error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 10px;
    padding: 20px;
    color: #c33;
    margin: 20px 0;
}

.metrics-info {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.metrics-info p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .stat-value {
        font-size: 2rem;
    }
    
    .chart-container {
        padding: 20px;
    }
}
