/* CRBB - Tema Azul Institucional
   Cuerpo de Bomberos Voluntarios de Balboa */

:root {
    --azul-principal: #143F80;
    --azul-oscuro: #0D2A59;
    --azul-claro: #E8F0FE;
    --azul-medio: #4A90D9;
}

body {
    font-size: 16px;
    background: #f8f9fa;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-menu {
    overflow-y: auto !important;
    flex: 1;
}

.sidebar-menu::-webkit-scrollbar {
    width: 8px;
}
.sidebar-menu::-webkit-scrollbar-track {
    background: #1a1a2e;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: #143F80;
    border-radius: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #4A90D9;
}

.sidebar .nav-link {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    margin: 0.1rem 0.5rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background: rgba(20, 63, 128, 0.3) !important;
}

.sidebar .nav-link.active {
    background: var(--azul-principal) !important;
    color: white !important;
}

/* Contenido principal */
main {
    margin-left: 260px !important;
}

/* Cards */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.card-header {
    background: var(--azul-principal) !important;
    color: white !important;
    font-weight: bold;
}

/* Botones */
.btn-primary {
    background: var(--azul-principal);
    border-color: var(--azul-principal);
}

.btn-primary:hover {
    background: var(--azul-oscuro);
    border-color: var(--azul-oscuro);
}

.btn-outline-primary {
    color: var(--azul-principal);
    border-color: var(--azul-principal);
}

.btn-outline-primary:hover {
    background: var(--azul-principal);
    border-color: var(--azul-principal);
}

/* Tablas */
.table thead th {
    background: var(--azul-principal);
    color: white;
    border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--azul-claro);
}

/* Badges */
.badge.bg-primary {
    background: var(--azul-principal) !important;
}

/* Cuadro de turnos - colores de celdas */
.cell-D { background: #FFF2B3 !important; }    /* Día - amarillo */
.cell-N { background: #B3D4FF !important; }    /* Noche - azul claro */
.cell-DD { background: #C6E8C6 !important; }   /* Disponible - verde */
.cell-X { background: #E0E0E0 !important; }    /* Descanso - gris */
.cell-L { background: #E0D6E8 !important; }    /* Libre - morado */
.cell-R { background: #B3D9F2 !important; }    /* Relevo - cyan */

/* Estadísticas dashboard */
.stat-card {
    border-left: 4px solid var(--azul-principal);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    main {
        margin-left: 0 !important;
    }
}

/* Login */
.login-bg {
    background: linear-gradient(135deg, #143F80 0%, #0D2A59 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: var(--azul-principal);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Portal ciudadano */
.portal-header {
    background: var(--azul-principal);
    color: white;
    padding: 1rem 0;
}

.portal-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--azul-principal);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
