/*==================================================*
* SYSTEM LEADS PRO
* SIDEBAR.CSS
*==================================================*/


/*==================================================*
* SIDEBAR
*==================================================*/

.slp-sidebar {

    width: 260px;
    height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    background: #FFFFFF;

    display: flex;
    flex-direction: column;

    border-right: 1px solid #E8ECF2;

    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.025);

    z-index: 1000;

    box-sizing: border-box;

}


/*==================================================*
* PARTE SUPERIOR
*==================================================*/

.slp-sidebar-top {

    display: flex;
    flex-direction: column;

    width: 100%;

}


/*==================================================*
* LOGO
*==================================================*/

.slp-logo {

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 22px 20px;

    min-height: 108px;

    box-sizing: border-box;

    border-bottom: 1px solid #EEF1F5;

    text-decoration: none;

}


.slp-logo img {

    width: 165px;

    max-width: 100%;

    height: auto;

    display: block;

}


/*==================================================*
* MENU
*==================================================*/

.slp-menu {

    display: flex;

    flex-direction: column;

    gap: 6px;

    padding: 20px 14px;

    box-sizing: border-box;

}


/*==================================================*
* ELEMENTO MENU
*==================================================*/

.slp-menu-item {

    display: flex;

    align-items: center;

    gap: 13px;

    width: 100%;

    height: 50px;

    padding: 0 14px;

    box-sizing: border-box;

    border-radius: 11px;

    color: #64748B;

    text-decoration: none;

    background: transparent;

    transition:
        background .20s ease,
        color .20s ease;

}


/*==================================================*
* HOVER
*==================================================*/

.slp-menu-item:hover {

    background: #F5F8FC;

    color: #334155;

}


/*==================================================*
* ACTIVO
*==================================================*/

.slp-menu-item.active {

    background: #EEF4FF;

    color: #2563EB;

}


/*==================================================*
* ICONOS
*==================================================*/

.slp-menu-icon {

    width: 24px;

    min-width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #64748B;

    line-height: 1;

    transition:
        color .20s ease;

}


/*==================================================*
* SVG
*==================================================*/

.slp-menu-icon svg {

    width: 20px;

    height: 20px;

    display: block;

}


/*==================================================*
* ICONO ACTIVO
*==================================================*/

.slp-menu-item.active .slp-menu-icon {

    color: #2563EB;

}


/*==================================================*
* TEXTO
*==================================================*/

.slp-menu-text {

    font-size: 15px;

    font-weight: 600;

    line-height: 1;

    color: inherit;

}


/*==================================================*
* CERRAR SESIÓN
*==================================================*/

.slp-logout {

    position: absolute;

    left: 14px;

    right: 14px;

    bottom: 16px;

    width: auto;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 13px;

    padding: 0 14px;

    box-sizing: border-box;

    border-radius: 11px;

    background: #F8FAFC;

    border: 1px solid #EDF0F4;

    color: #EF4444;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        background .20s ease,
        color .20s ease,
        border-color .20s ease;

}


/*==================================================*
* HOVER CERRAR SESIÓN
*==================================================*/

.slp-logout:hover {

    background: #FFF5F5;

    border-color: #FEE2E2;

    color: #DC2626;

}


/*==================================================*
* ICONO CERRAR SESIÓN
*==================================================*/

.slp-logout .slp-menu-icon {

    width: 24px;

    min-width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: inherit;

}


.slp-logout .slp-menu-icon svg {

    width: 20px;

    height: 20px;

}


/*==================================================*
* SEPARADOR SOBRE CERRAR SESIÓN
*==================================================*/

.slp-logout::before {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    top: -17px;

    height: 1px;

    background: #EEF1F5;

}


/*==================================================*
* MOVIL
*==================================================*/

@media (max-width: 768px) {


    .slp-sidebar {

        width: 260px;

        transform: translateX(-260px);

        transition:
            transform .30s ease;

    }


    .slp-sidebar.open {

        transform: translateX(0) !important;

    }


    .slp-menu {

        padding: 18px 14px;

        gap: 6px;

    }


    .slp-menu-item {

        height: 50px;

        padding: 0 14px;

    }


    .slp-logo {

        padding: 22px 18px;

        min-height: 100px;

    }


    .slp-logo img {

        width: 155px;

    }


    .slp-logout {

        left: 14px;

        right: 14px;

        bottom: 14px;

    }

}