/* ── Predicta – estilos globales ─────────────────────────────────────── */

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    background-color: #1a1d23 !important;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    font-size: 0.875rem;
    transition: background 0.15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

/* Cards */
.card {
    border-radius: 10px;
}

/* KPI número grande */
.display-6 {
    font-size: 2rem;
}

/* Tabla compacta */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
}

/* Badge sin margen excesivo */
.badge {
    font-weight: 500;
}

/* Código inline */
code {
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.82em;
}

/* Animación de pulso para estado "down" */
@keyframes pulse-danger {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-down {
    animation: pulse-danger 1.5s ease-in-out infinite;
}

/* Scrollbar más compacto en Firefox */
* {
    scrollbar-width: thin;
}