/* Copyright (c) 2025-2026 William Chesher | MIT License */
/* stat-cards.css - Shared stat card styles for system pages (matches overview stat-card-lg) */

/* ============================================
   Stats Row Layout
   ============================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   Stat Cards
   ============================================ */

.stat-card {
    background: var(--accent, #00d4ff);
    border: 1px solid var(--accent-light, #a0a1d0);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card svg {
    width: 40px;
    height: 40px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-card .stat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-card .stat-icon,
.stat-card svg.stat-icon {
    font-size: 1.8rem;
    color: #fff !important;
    fill: #fff !important;
    flex-shrink: 0;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.stat-card .label {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.stat-card .unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Dark Theme
   ============================================ */

html.dark-theme .stat-card {
    background: var(--accent, #00d4ff);
    border-color: var(--accent-hover, #726fae);
}

html.dark-theme .stat-card svg {
    color: #fff;
}

html.dark-theme .stat-card .stat-icon,
html.dark-theme .stat-card svg.stat-icon {
    color: #fff !important;
    fill: #fff !important;
}

html.dark-theme .stat-card .value {
    color: #fff;
}

html.dark-theme .stat-card .label {
    color: rgba(255, 255, 255, 0.8);
}

html.dark-theme .stat-card .unit {
    color: rgba(255, 255, 255, 0.7);
}
