:root {
    --bg-sidebar: #f2f2f2;
    --accent: #1e88e5;
    --green: #2e7d32;
    --overlay: rgba(0, 0, 0, 0.35);
}

/* Botón flotante */
.fixed-action-btn {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 1001;
}

.fixed-action-btn .btn-floating {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Barra lateral */
.custom-sidenav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(88vw, 300px);
    height: 100vh;
    background: var(--bg-sidebar) !important;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.12);
    z-index: 3000;
    overflow-y: auto;
    font-family: sans-serif !important;
}

.custom-sidenav.is-open {
    transform: translateX(0);
}

/* Overlay */
.sidenav-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2999;
}

/* RESET TOTAL DE FONDOS PARA LA LISTA */
.menu ul,
.menu li,
.menu a {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
}

/* Menú ULTRA COMPACTO */
.menu {
    padding: 0 10px 10px 10px;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.menu a {
    display: block;
    padding: 4px 10px;
    color: #333 !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.88rem;
    line-height: 1.2;
}

/* Títulos de sección: SIN FONDO Y SIN CAPACIDAD DE CLICK */
.menu a.section {
    padding-top: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    pointer-events: none !important;
}

.menu a.section.green {
    color: var(--green) !important;
}

.menu a.section.blue {
    color: var(--accent) !important;
}

/* HOVER: AQUÍ ES EL ÚNICO LUGAR DONDE SE PERMITE COLOR */
.menu a:not(.section):hover {
    background-color: #e1f5fe !important;
    /* Solo este fondo azul clarito al pasar el mouse */
    color: #01579b !important;
    text-decoration: underline;
}

/* Divisor */
.divider.short {
    width: 85%;
    height: 1px;
    background: #ddd;
    margin: 8px auto;
}

/* --- Estilos del perfil (se mantienen) --- */
.user-view {
    position: relative;
    margin-bottom: 5px;
}

.user-view .background {
    width: 100%;
    height: 130px;
    overflow: hidden;
}

.user-view .background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-line {
    position: absolute;
    left: 10px;
    bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 6px;
}

.profile-line .circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #fff;
}

.profile-line .name {
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
}

/* ANULAR EL AZUL DEL NAVBAR EN LA BARRA LATERAL */
aside.custom-sidenav nav.menu {
    background-color: transparent !important;
    background: none !important;
    height: auto !important;
    /* Para que no use los 64px del navbar */
    line-height: normal !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Asegurar que los enlaces internos no hereden el blanco del navbar */
.custom-sidenav .menu ul li a {
    color: #333 !important;
}