/* Variables de colores globales */
:root {
    --primary-color: #2563eb; /* blue-600 */
    --primary-light: #3b82f6; /* blue-500 */
    --primary-dark: #1d4ed8; /* blue-700 */
    --secondary-color: #16a34a; /* green-600 */
    --secondary-light: #22c55e; /* green-500 */
    --secondary-dark: #15803d; /* green-700 */
}

body {
    font-family: 'Arial', sans-serif;
}

/* Sidebar responsive - En desktop siempre visible */
@media (min-width: 768px) {
    body {
        margin-left: 16rem; /* w-64 = 16rem */
    }
    
    header {
        margin-left: -16rem;
        width: calc(100% + 16rem);
    }
}

/* Estilos personalizados para los tipos de alertas en Tailwind */
.alert-success { background-color: #0fecdd; } /* Verde */
.alert-error { background-color: #f87171; } /* Rojo */
.alert-warning { background-color: #fbbf24; } /* Amarillo */

/* Animaciones suaves para el sidebar */
#sidebar {
    transition: transform 0.3s ease-in-out;
}

#sidebarOverlay {
    transition: opacity 0.3s ease-in-out;
}

/* Scroll suave en el menú */
nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(71, 85, 105, 0.3) transparent;
}

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

nav::-webkit-scrollbar-track {
    background: transparent;
}

nav::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.3);
    border-radius: 3px;
}

nav::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.5);
}

/* ===== CLASES DE COLORES PRIMARIOS Y SECUNDARIOS ===== */

/* Headers */
.header-primary {
    background-color: var(--primary-color);
    color: white;
}

.header-secondary {
    background-color: var(--secondary-color);
    color: white;
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
}

/* Card Headers */
.card-header-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

.card-header-secondary {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
}