/* Statistics Pages */

/* Chart containers */
.chart-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}
.chart-container-sm {
    min-height: 250px;
}
.chart-container-lg {
    min-height: 400px;
}

/* Stat summary cards */
.stat-card {
    text-align: center;
    padding: 1.25rem 1rem;
    opacity: 1;
    transform: none;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

/* Dark theme stat cards (public) */
body:not(.admin-body) .stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    color: #fff;
}
body:not(.admin-body) .stat-card .stat-value {
    color: var(--theme-secondary, #f9c846);
}

/* Light theme stat cards (admin) */
.admin-body .stat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.admin-body .stat-card .stat-value {
    color: var(--theme-primary, #1a73e8);
}

/* Heatmap table */
.heatmap-table {
    font-size: 0.85rem;
    border-collapse: separate;
    border-spacing: 2px;
}
.heatmap-table th {
    font-weight: 600;
    white-space: nowrap;
    padding: 0.4rem 0.6rem;
}
.heatmap-table td {
    text-align: center;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    min-width: 48px;
    font-weight: 500;
}

/* Heatmap cell colors */
.heatmap-cell-100 { background: #1b5e20; color: #fff; }
.heatmap-cell-90  { background: #2e7d32; color: #fff; }
.heatmap-cell-80  { background: #388e3c; color: #fff; }
.heatmap-cell-70  { background: #43a047; color: #fff; }
.heatmap-cell-60  { background: #66bb6a; color: #000; }
.heatmap-cell-50  { background: #ffca28; color: #000; }
.heatmap-cell-40  { background: #ffa726; color: #000; }
.heatmap-cell-30  { background: #ef5350; color: #fff; }
.heatmap-cell-20  { background: #e53935; color: #fff; }
.heatmap-cell-10  { background: #c62828; color: #fff; }
.heatmap-cell-0   { background: #757575; color: #fff; }

/* Admin heatmap overrides */
.admin-body .heatmap-cell-100 { background: #c8e6c9; color: #1b5e20; }
.admin-body .heatmap-cell-90  { background: #a5d6a7; color: #1b5e20; }
.admin-body .heatmap-cell-80  { background: #81c784; color: #1b5e20; }
.admin-body .heatmap-cell-70  { background: #66bb6a; color: #1b5e20; }
.admin-body .heatmap-cell-60  { background: #fff59d; color: #333; }
.admin-body .heatmap-cell-50  { background: #ffe082; color: #333; }
.admin-body .heatmap-cell-40  { background: #ffcc80; color: #333; }
.admin-body .heatmap-cell-30  { background: #ef9a9a; color: #c62828; }
.admin-body .heatmap-cell-20  { background: #e57373; color: #fff; }
.admin-body .heatmap-cell-10  { background: #ef5350; color: #fff; }
.admin-body .heatmap-cell-0   { background: #e0e0e0; color: #999; }

/* Category extremes lists */
.category-extreme-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-body .category-extreme-item {
    border-bottom-color: #eee;
}
.category-extreme-item:last-child {
    border-bottom: none;
}
.category-extreme-item .category-name {
    font-weight: 500;
}
.category-extreme-item .category-pct {
    font-weight: 700;
    font-size: 0.95rem;
}

/* Mobile stacked result cards — base styles moved to style.css */

/* No data state */
.stats-no-data {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.6;
}
.stats-no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Responsive chart sizing */
@media (max-width: 768px) {
    .chart-container {
        min-height: 250px;
    }
    .chart-container-lg {
        min-height: 300px;
    }
    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}
