/* ============================================ */
/* Gestión de Usuarios > Estadísticas            */
/* ============================================ */

/* Tarjetas KPI */
.Estadisticas_kpi-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    padding: 1rem 0.75rem;
    text-align: center;
}
.Estadisticas_kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--connex-primary);
    line-height: 1.1;
}
.Estadisticas_kpi-value-text {
    font-size: 1.1rem;
}
.Estadisticas_kpi-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.2rem;
}

/* Tarjetas de gráficos */
.Estadisticas_chart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.06);
    padding: 1rem;
    height: 100%;
}
.Estadisticas_chart-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--connex-dark);
    margin-bottom: 0.75rem;
}
.Estadisticas_chart-wrapper {
    position: relative;
    height: 280px;
}

/* Badge de auto-actualización */
.Estadisticas_auto-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(61,143,170,0.12);
    color: var(--connex-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}
.Estadisticas_auto-refresh-badge i {
    animation: Estadisticas_spin 2.5s linear infinite;
}
@keyframes Estadisticas_spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================ */
/* TEMA OSCURO                                  */
/* ============================================ */
[data-bs-theme="dark"] .Estadisticas_kpi-card,
[data-bs-theme="dark"] .Estadisticas_chart-card {
    background-color: #1a1f27;
    box-shadow: 0 3px 14px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .Estadisticas_chart-title {
    color: #e8e8e8;
}
[data-bs-theme="dark"] .Estadisticas_kpi-value {
    color: #7ecde0;
}
[data-bs-theme="dark"] .Estadisticas_kpi-label {
    color: #9aa4af;
}
