/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    --title-color: #242329;
    --text-color: rgb(213, 213, 216);
    --division-color: #e4e3e3;
    --body-color: hsl(250, 60%, 98%);
    --container-color: #fff;
    --shadow: hsla(0, 0%, 15%, .1);
    --scroll-bar-color: hsl(250, 12%, 90%);
    --scroll-thumb-color: hsl(250, 12%, 80%);
    --first-color:#466680;
    --first-color-alt:#466680;
    /*========== Font and typography ==========*/
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;

    /*========== Font weight ==========*/
    --font-medium: 500;
    --font-bold: 600;

    /*========== Margenes Bottom ==========*/
    --mb-0-5: .5rem;
    --mb-0-75: .75rem;
    --mb-1: 1rem;
    --mb-1-5: 1.5rem;
    --mb-2: 2rem;
    --mb-2-5: 2.5rem;
    --mb-3: 3rem;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

:root {
    --main-color: #466680   ;
    --color-dark: #1D2231;
    --text-grey: #8390A2;
}
/*=============== BASE ===============*/
* {
    padding: 0;/*padding interno de todos*/
    margin: 0;/*margen de contorno total*/
    box-sizing: border-box;
    list-style-type: none;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;/*Si i solo si voy a usar una sola fuente para todo, sino declaro como variable*/
}

.sidebar {
    width: 260px; /*Ancho de la pagina*/
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--first-color);
    z-index: 120;
    transition: all 0.5s ease;
}

/*=============== SIDEBAR BRAND Y TOGGLE ===============*/

.sidebar .sidebar__brand{
    position: relative;
}
.sidebar .sidebar__brand .sidebar__brand__content{
    height: 60px;
    width: 100%;
    margin-top: 0.7rem;
    display: flex;
    align-items: center;
}
.sidebar .sidebar__brand .sidebar__brand__content i{
    display: inline;
    font-size: 40px;
    color: #fff;
    height: 40px;
    min-width: 88px;
    text-align:center;
    line-height: 50px;
}
.sidebar .sidebar__brand .sidebar__brand__content .brand__name{
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    transition: 0.3s ease;
    transition-delay: 0.1s;
}
.sidebar.close .sidebar__brand .sidebar__brand__content .brand__name{
    transition-delay: 0s;
    opacity: 0;
    pointer-events: none;
}
.sidebar .sidebar__brand .toggle{
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%) rotate(180deg);
    height: 30px;
    width: 30px;
    background-color: var(--first-color-alt);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}
/*=============== SIDEBAR CLOSE ===============*/
.sidebar.close{
    width: 88px;
}
.sidebar.close .toggle{
    transform: translateY(-50%);
}
.sidebar.close .sidebar__menu{
    overflow: visible;
}
.sidebar.close .sidebar__menu li .roll__link{
    display: block;
}
.sidebar.close .sidebar__menu i.arrow{
    display: none;
}
.sidebar.close .sidebar__menu li a .link__name{
    opacity: 0;
    pointer-events: none;
}
.sidebar.close .sidebar__menu li .sub__menu{
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    opacity: 0;
    display: block;
    pointer-events: none;
    transition: 0s;
}
.sidebar.close .sidebar__menu li:hover .sub__menu{
    top: 0;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
}
.sidebar.close .sidebar__menu li .sub__menu .link__name{
    font-size: 18px;
    opacity: 1;
    display: block;
}
/*=============== SIDEBAR MENU OPCIONES ===============*/

.sidebar .sidebar__menu{
    height: 100%;
    padding: 40px 0 150px 0;
    overflow: auto;
}
.sidebar .sidebar__menu::-webkit-scrollbar{
    display: none;
}
.sidebar .sidebar__menu li{
    position: relative;
    list-style: none;
    transition: all 0.4s ease;
}
.sidebar .sidebar__menu li:hover{
    background: var(--first-color-alt);
}
.sidebar .sidebar__menu li .roll__link{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar .sidebar__menu li i{
    height: 50px;
    min-width: 88px;
    text-align: center;
    line-height: 50px;
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sidebar .sidebar__menu li.showMenu i.arrow{
    transform: rotate(-180deg);
}

.sidebar .sidebar__menu li a{
    display: flex;
    align-items: center;
    text-decoration: none;
}
.sidebar .sidebar__menu li a .link__name{
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    transition: all 0.4s ease;
}
.sidebar .sidebar__menu li .sub__menu{
    padding: 6px 6px 14px 80px;
    margin-top: -10px;
    background: var(--first-color-alt);
    display: none;
}
.sidebar .sidebar__menu li.showMenu .sub__menu{
    display: block;
}
.sidebar .sidebar__menu li .sub__menu a{
    color: #fff;
    font-size: 15px;
    padding: 5px 0;
    white-space: nowrap;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.sidebar .sidebar__menu li .sub__menu a:hover{
    opacity: 1;
}
.sidebar .sidebar__menu li .sub__menu .link__name{
    display: none;
}
.sidebar .sidebar__menu li .sub__menu.blank{
    opacity: 1;
    pointer-events: auto;
    padding: 3px 20px 6px 16px;
    opacity: 0;
    pointer-events: none;
}
.sidebar .sidebar__menu li:hover .sub__menu.blank{
    top: 50%;
    transform: translateY(-50%);
}
/*=============== Movimiento horizontal ===============*/
.sidebar.close ~ .header__content{
    left: 88px;
    width: calc(100% - 88px);
}
.sidebar.close ~ .main__content {
    left: 88px;
    width: calc(100% - 88px);
}

/*=============== HEADER ===============*/
.header__content{
    background: #fff;
    display:flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 260px;
    width: calc(100% - 260px);
    top:0;
    z-index: 100;
    height: var(--header-height + 1.5rem);
    transition: all 0.5s ease;
}
/*=============== HEADER TITULO Y BOTON ===============*/
.header__content .header__titulo{
    align-items: center;
    display: flex;
    justify-content: center;
}
.header__content .header__titulo i{
    display: none;
}
.header__content .header__titulo span{
    color: #11101d;
    font-size: 30px;
    font-weight: 600;
    padding-left: 0rem;
    margin-left: 1.5rem;
    text-align: center;
}
/*=============== HEADER PROFILE ===============*/
.header__content .profile__user{
    display: flex;
    height: 40px;
    align-items: center;
    justify-content: center;
}
/* Foto del usuario*/
.header__content .profile__user img{
    border-radius: 50%;
    margin-right: 1rem;
}
/* En caso no tenga imagen*/
.header__content .profile__user i{
    border-radius: 50%;
    margin-right: 1rem;
    display: inline;
    font-size: 40px;
    height: 40px;
    color: #000;
    text-align:center;
}
/* Nombre y cargo de usuario*/
.header__content .profile__user .profile__details small{
    display: inline-block;
    color: var(--text-grey);
}

.header__content .profile__user .profile__details h4{
    color: black;
}
/*=============== CONTENIDO DENTRO DEL DASH - BASE ===============*/
.main__content{
    position: relative;
    background: #eceeef;
    height: 100%;
    left: 260px;
    width: calc(100% - 260px);
    transition: all 0.5s ease;
}
/*=============== CONTENIDO INTERNO ===============*/
main{
    margin-top: 65px;
    padding: 2rem 1.5rem;
    background: #eceeef;
    z-index: 0;
    height: 100%;
    min-height: calc(100vh - 65px);
}
.main__content{
    margin-top: 65px;
    background-color: #843784;
    height: 100%;
}
/*=============== HEADER BUSCADOR ===============*/
.search__header{
    border: 1px solid #ccc;
    border-radius: 30px;
    height: 40px;
    display: flex;
    background-color: #fff;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}
.search__header i{
    display: inline;
    padding: 0rem 1rem;
    font-size: 1.2rem;
    height: 1.4rem;
    color: black;
    cursor: pointer;
}
.search__header input{
    height: 100%;
    padding: 0.5rem;
    margin-left: 0.7rem;
    border: none;
    outline: none;
    background-color: #fff;
}
@media only screen and (max-width:750px){    

    .sidebar .sidebar__brand .toggle{
        display: none;
    }
    .sidebar.close ~ .main__content {
        left: 0  !important;
        z-index: 100 ;
        width: 100%;
    }

    .sidebar.close ~ .header__content{
        left: 0  !important;
        z-index: 200 ;
        width: 100%;
    }
    main{
        margin-top: 65px;
        padding: 1rem 0.2rem;
    }
    .main__content{
        width: 100%;
        left: 0px;
        z-index: 100 ;
        margin-left: 0rem;
    }
    .header__content{
        left: 0px  !important;
        z-index: 200 ;
        width: 100%;
        margin-left: 0rem;

    }
    .sidebar{
        left: 0px !important;
        z-index: 150 ;
        transition: all 0.5s ease;
    }
    .sidebar.close{
        left: -100%  !important;
        z-index: 150 ;
        width: 0%;
        transition: all 0.1s ease;
    }
    .sidebar .sidebar__brand{
        display: none;
    }

    .sidebar .sidebar__menu{
        margin-top: 70px;
    }
    .header__content .header__titulo i{
        background: var(--first-color);
        padding-right: 0rem;
        margin-right: 1rem;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center !important;
    }
    .header__content .header__titulo span{
        color: #11101d;
        font-size: 20px;
        font-weight: 600;
        padding-left: 0rem;
        margin-left: 0rem;
    }
}
