/* Estado inicial */
.sidenav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 70px;
    padding: 15px;
    min-height: 100vh;
    background-color: var(--toneBlueStrong);
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.2);
    transition: width 0.3s ease-in-out;
    z-index: 2000;
}

/* Al hacer hover en desktop */
.sidenav:hover {
    width: 300px;
}

/* En móvil: ocultamos el sidenav por defecto */
@media (max-width: 768px) {
    .sidenav {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 250px;
        /* ancho al abrir */
    }

    .sidenav.open {
        transform: translateX(0);
    }
}

/* Botón hamburguesa */
.menu-toggle {
    position: fixed;
    top: 10px;
    left: 15px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background-image: url("../../img/iconos/menu.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    cursor: pointer;
    z-index: 2100;
    display: none;
}

/* Botón hamburguesa */
.menu-close {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    font-size: large;
    font-weight: 700;
    color: var(--toneGreySolid);
    cursor: pointer;
    z-index: 2100;
    display: none;
}

/* Mostrar botón hamburguesa solo en móviles */
@media (max-width: 768px) {}

/* Clase que activa la visibilidad en móviles */
.viewSidenavMovile {
    transition-delay: 0.7s;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
}

/* Desktop: hover sigue funcionando */
.sidenav:hover .sectionUserInfo__name,
.sidenav:hover .sectionUserInfo__rol,
.sidenav:hover .contentFunctionModule,
.sidenav:hover .textModule {
    transition-delay: 0.6s;
    opacity: 1;
    visibility: visible;
    height: auto;
}

/* Desktop: hover sigue funcionando */
.open .sectionUserInfo__name,
.open .sectionUserInfo__rol,
.open .contentFunctionModule,
.open .textModule {
    transition-delay: 0.6s;
    opacity: 1;
    visibility: visible;
    height: auto;
}

.sectionUserInfo {

    width: 100%;
    max-height: 110px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    align-content: center;

}

.sectionUserInfo__avatar {

    background-image: url("../../img/menu/avatar.svg");
    background-position: center;
    background-repeat: no-repeat;
    min-width: 35px;
    min-height: 35px;
}

.sectionUserInfo__name {

    margin-top: 10px;
    width: 100%;
    height: 35px;
    color: var(--toneWhite);
    text-align: center;
    visibility: hidden;
    opacity: 0;
}

.sectionUserInfo__rol {

    height: 35px;
    width: 100%;
    color: var(--toneBlue);
    text-align: center;
    visibility: hidden;
    opacity: 0;
}

.sectionModulesMenu {

    position: relative;
    z-index: 100000;
    top: 30px;
    width: 100%;
    min-height: calc(100vh - 230px);
    max-height: calc(100vh - 230px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 25px;
}

.sectionModulesMenu::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.sectionModulesMenu::-webkit-scrollbar-thumb {
    background: transparent;
}

.modulesName {

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    cursor: pointer;
    width: 100%;
}

.contentNameModule {

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    height: 35px;

}

.contentFunctionActive {
    color: var(--toneBlue) !important;
}

.imgModule {

    min-width: 35px;
    max-width: 35px;
    height: 35px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
}

.imgModuleActive {

    border-radius: 5px;
    border: 2px solid var(--toneBlue);
}

.modulesNameActive>.contentNameModule>.textModule {

    color: var(--toneBlue);
}

.textModule {

    width: 100%;
    height: auto;
    color: var(--toneGreySolid);
    text-decoration: none;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    border-radius: 5px;
    padding: 5px 10px;

}


.contentFunctionModule {
    position: relative;
    top: 5px;
    left: 0px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    height: 0px;
    padding-left: 45px;
}

.sectionCloseSession {
    margin-bottom: 15px;
    width: 30px;
    height: 30px;
    background-image: url("../../img/iconos/cerrarSesion.svg");
    background-position: left;
    background-repeat: no-repeat;
    background-size: 100%;
    margin-top: auto;
    cursor: pointer;
}

.lineNotifications {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    cursor: pointer;
}

.section-notifications-wrapper {
    position: relative;
    /* Necesario para posicionar absolutamente el panel dentro */
    display: inline-block;
    height: 33px;
}

.contentNotifications {

    position: absolute;
    top: 100%;
    /* Justo debajo del botón */
    right: 0;
    /* O left: 0, según necesites */
    margin-top: 6px;
    /* Espaciado entre botón y panel */
    border-radius: 8px;
    background-color: var(--toneBlueStrong);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    padding: 10px;
    display: none;
    min-width: 300px;
    max-height: 500px;
    z-index: 999;
    overflow: auto;
}

.lineModule {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: var(--toneWhite);
    padding: 4px 10px;
}

.number-notifications {

    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    background-color: var(--toneRed);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    color: var(--toneWhite) !important;

}

.lineModule label {

    font-weight: bold;
    color: var(--toneBlueStrong);
}

.section-notifications {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 20px;
}

.circleCount {
    min-width: 18px;
    height: 18px;
    background: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -4px;
}

.btnDownSectionNotifications {

    border: none;
    height: 25px;
    width: 25px;
    background-color: transparent;
    background-image: url(../../img/iconos/btnDown.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px 10px;
    transition: all 0.3s ease-in-out;
}

.iconMessage {

    border: none;
    height: 30px;
    width: 30px;
    background-color: transparent;
    background-image: url(../../img/iconos/email.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px 15px;
}

.iconCheckMessage {

    border: none;
    height: 30px;
    width: 30px;
    background-color: transparent;
    background-image: url(../../img/iconos/check-list.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px 15px;
    display: none;
}

.btnDownSectionNotifications:hover {
    transform: scale(1.08);
}

.contentNotificationUser {

    height: 0px;
    visibility: hidden;
}

.viewNotifications {
    height: auto;
    visibility: visible;
    padding: 10px 0;
}

.lineNotificationModule {

    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--toneGreySolid);
    padding: 5px 0;
    cursor: pointer;
}

.lineNotificationModule:hover>.iconCheckMessage {

    display: block;
}

.lineNotificationModule p {

    font-weight: 400 !important;
    font-size: 0.8rem;
    color: var(--toneWhite);
    margin-bottom: 0 !important;
}

/* imagenes menu */

.menuMonitoreo {
    background-image: url(../../img/menu/monitoreo.svg);
}

.menuAdmin {
    background-image: url(../../img/menu/administracion.svg);
}

.menuAsociados {
    background-image: url(../../img/menu/asociados.svg);
}

.menuMantenimiento {
    background-image: url(../../img/menu/mantenimiento.svg);
}

.menuIndicadores {
    background-image: url(../../img/menu/indicadores.svg);
}

.menuRh {
    background-image: url(../../img/menu/rh.svg);
}

.menuSeguridad {
    background-image: url(../../img/menu/seguridad.svg);
}

.menuTrafico {
    background-image: url(../../img/menu/trafico.svg);
}

.menuSistemas {
    background-image: url(../../img/menu/sistemas.svg);
}

.icon-notifications {
    background-image: url(../../img/menu/notifications.svg);

}