/* 
===============================================
SISTEMA DEPARTAMENTOS MOMO - ESTILOS PRINCIPALES
Enfocado en Accesibilidad y UI Moderna Veraniega
===============================================
*/

:root {
    --momo-blue: #00A8E8; /* Celeste mar */
    --momo-dark: #1F2937; /* Azul muy oscuro para sidebar */
    --momo-bg: #F4F7F6;   /* Gris mar muy claro para fondo */
    
    --state-success: #28a745;
    --state-danger: #dc3545;
    --state-warning: #ffc107;
    --state-orange: #fd7e14; /* Señado */
    --state-secondary: #6c757d; /* Mantenimiento */
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 16px; /* Base grande para personas mayores */
    background-color: var(--momo-bg) !important;
    color: #333;
}

/* =========================================
   LOGIN
========================================= */
.login-wrapper {
    background: linear-gradient(135deg, rgba(0,168,232,0.1) 0%, rgba(31,41,55,0.05) 100%);
}

.login-card {
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
}

.form-control-lg {
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 0.75rem;
}

.form-floating > label {
    padding-left: 1rem;
}

.btn-lg {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
}

/* =========================================
   SIDEBAR (Desktop)
========================================= */
.sidebar {
    width: 280px;
    background-color: var(--momo-dark) !important;
    z-index: 1000;
    transition: all 0.3s;
}

.sidebar-logo {
    border: 3px solid rgba(255,255,255,0.1);
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0.2rem 1rem;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    opacity: 1;
    transform: translateX(5px);
}

.nav-link.active {
    background-color: var(--momo-blue);
    opacity: 1;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 168, 232, 0.4);
}

/* =========================================
   APP LAYOUT
========================================= */
.main-content {
    margin-left: 280px; /* Ancho del sidebar */
    min-height: 100vh;
}

/* Responsive Main content padding */
@media (max-width: 991.98px) {
    .main-content {
        margin-left: 0;
    }
}

.top-navbar {
    background-color: var(--momo-dark);
}

.user-btn {
    border-radius: 2rem;
    padding: 0.4rem 1.2rem;
    font-size: 1.1rem;
}

/* =========================================
   CARDS DASHBOARD
========================================= */
.summary-card {
    transition: transform 0.2s;
    border: none;
}
.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.unit-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.unit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.unit-card .card-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Colores de Estado Personalizados para mejor contraste */
.bg-success { background-color: #20c997 !important; } /* Un verde más vibrante/veraniego */
.bg-danger { background-color: #ff6b6b !important; } /* Rojo más suave */
.bg-warning { background-color: #ffc107 !important; color: #000 !important; }
.bg-secondary { background-color: #adb5bd !important; } /* Gris más claro para mantenimiento */
.bg-primary { background-color: var(--momo-blue) !important; }
.bg-purple { background-color: #845ef7 !important; color: white; }

.text-white { color: #fff !important; }
.text-dark { color: #212529 !important; }

/* =========================================
   BADGES & UTILS
========================================= */
.badge {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5em 0.7em;
    border-radius: 0.5rem;
}

h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* Utility classes personalizadas */
.state-success { border-top: 5px solid #20c997 !important; }
.state-danger { border-top: 5px solid #ff6b6b !important; }
.state-warning { border-top: 5px solid #ffc107 !important; }
.state-orange { border-top: 5px solid var(--state-orange) !important; }
.state-secondary { border-top: 5px solid #adb5bd !important; }
