:root {
    --color-success: #10B981;
    /* Emerald-500 */
    --color-warning: #F59E0B;
    /* Amber-500 */
    --color-critical: #EF4444;
    /* Red-500 */
    --color-info: #3B82F6;
    /* Blue-500 */
    --bg-app: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Login Grid Pattern */
.bg-grid-pattern {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Timeline Custom Styles */
.timeline-line {
    position: relative;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 0;
    left: 24px;
    /* Centrado respecto al icono */
    width: 2px;
    background: #E2E8F0;
    z-index: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}


.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

.menu-btn {
    width: 100%;
    height: 2.75rem;
    padding: 0 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-btn:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    color: white;
}

.menu-btn.active {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15) 0%, transparent 100%);
    color: #FCA5A5;
    border-left-color: #EF4444;
    box-shadow: none;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}



.cursor-wait {
    cursor: wait;
    opacity: 0.7;
    pointer-events: none;
}

/* Estilos adicionales para inputs */
.input {
    width: 100%;
    padding: 0.75rem;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    outline: none;
}

.input:focus {
    border-color: #EF4444;
}

.btn-primary {
    background-color: #111827;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
}

.btn-sec {
    color: #94A3B8;
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Toast Styles */
.toast-enter {
    animation: slideInRight 0.3s ease-out forwards;
}

.toast-leave {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Live Status Indicator */
.status-live {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Premium KPI Card Hover */
.kpi-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08);
    /* Sombra más suave */
}