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

/*===== VARIABLES CSS =====*/
:root{
    --nav-width: 73px;
  
    /*===== Colores =====*/
    --first-color: #0C5DF4;
    --bg-color: #FFFFFF;
    --sub-color: #B6CEFC;
    --white-color: #FFF;
    
    /*===== Fuente y tipografia =====*/
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    
    /*===== z index =====*/
    --z-fixed: 100;
  }
  ul{
    margin: 0;
    padding: 0;
    list-style: none;
  }
  a{
    text-decoration: none;
  }
  /*===== Sidebar =====*/
  .sidebarCustom{
    position: fixed;
    top: 0;
    left: 0;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--bg-color);
    color: #2F3037;
    padding: 1.5rem 1.5rem 2rem;
    transition: all 0.4s ease;
    z-index: var(--z-fixed);
    font-size:var(--normal-font-size);
    border-right:1px solid #E4E4E7;
    font-family: 'Poppins', sans-serif;
}
  /*===== NAV =====*/
  .nav{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }
  /*==== SIDEBAR HEADER ====*/
  .sidebar__header{
    display: grid;
    grid-template: 1fr / 1fr .2fr;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom:2rem;
    border-bottom: 1px solid #E4E4E7;
  }
  .sidebar__brand{
    display:none;
    transition: all 0.4s ease;
    color: #2F3037;
  }

  .sidebar__userMeta{
    display:flex;
    flex-direction:column;
    width:100%;
    
  }
  .sidebar__userMeta h2 {
    margin-bottom:0;
    font-size: 16px;
    font-weight:600;
    font-family: 'Montserrat', sans-serif;
  }
  .sidebar__userMeta h5 {
    margin-bottom: 0;
    font-size: 12px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 110px;
    font-family: 'Montserrat', sans-serif;
    color:#5F606D;

  }
  .sidebar__logo{
    font-weight: 600;
    font-size:20px;
    transition: all 0.4s ease;
  }
  .sidebar__toggle #nav-toggle{
    font-size: 2.2rem;
    padding: 1rem;
    cursor: pointer;
    color:#2F3037;
  }
  /*==== SIDEBAR BODY ====*/
  .sidebar__body::-webkit-scrollbar{
    display: none;
  }
  .sidebar__body{
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  .sidebar__item{
    display: grid;
    grid-template: 1fr / .25fr 1fr 1fr;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    color:#2F3037;
    border-radius: .5rem;
    transition: .3s;
    cursor: pointer;
    text-decoration: none;
  }
  .sidebar__link{
    display:flex;
    justify-content:flex-start;
    padding:1rem;
    gap: 0.75rem;
    align-items:flex-end;
    color:#2F3037;
    border-radius: .5rem;
  }

  .sidebar__link:active{
    background:#E2EEFF;
    color: #064FD3; 
  }

  .sidebar__icon{
    font-size: 2.2rem;
    color:#2F3037;
  }
  .nav__name{
    opacity:0;
    font-size:1.2rem;
    padding-left:10px;
    display:none;
  }
  .collapse__link{
    opacity:0;
    justify-self: flex-end;
    font-size:2rem;
  }
  .collapse__menu{
    display: none;
    padding: 1rem;
    background: #F1F2F3;
  }
  .collapse__sublink{
    color:#5F606D;    ;
    font-size: 1.2rem;
    margin: .5rem 0;
  }
  .collapse__sublink:hover{
    color:#064FD3;
  }
  .custom-tooltip{
    position: absolute;
    transform: translate(75px,-32px);
    color: white;
    opacity:0;
    box-shadow: 0 0.5rem 0.8rem rgba(0,0,0,0.2);
    font-size:16px;
    border-radius:.6rem;
    padding:.4rem 1.2rem;
    line-height: 1.8rem;
    z-index: var(--z-fixed);
    background:#333;
  }

  /*=== SIDEBAR BOTTOM ===*/
  .sidebar__bottom{
    margin-top:auto;
    display: grid;
    /* grid-template: 1fr /.25fr 1fr .1fr; */
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    color:#2F3037;
    margin-bottom: 1rem;
    transition: .3s;
    cursor: pointer;
    text-decoration: none;
    border-top:1px solid #E4E4E7;
  }

  .sidebar__body ul li:hover .custom-tooltip{
    opacity:1;
  }

  .sidebar__body ul li:hover .sidebar__item .sidebar__icon,
  .sidebar__bottom:hover .sidebar__icon,
  .sidebar__link:hover,
  .sidebar__link:hover .sidebar__icon,
  .sidebar__header .sidebar__toggle:hover #nav-toggle{
    color:#064FD3;
  }
  /*Active links menu*/
  .active{
    background:#E2EEFF;
    color: #064FD3; 
  }

  /*Expander menu SIDEBAR*/
  .expander{
    width: calc(var(--nav-width) + 15rem);
  }

  .content{
    box-sizing:border-box;
    position:relative;
    width: calc(100% - var(--nav-width));
    margin:0;
    padding:2rem;
    left: var(--nav-width);
    transition: all 0.4s ease;
    background:#ECEFF4;
    min-height:100vh;
  }
  /*Expander SIDEBAR LOGIC*/
  .sidebarCustom.expander ~ .content{
    box-sizing:border-box;
    position:relative;
    width: calc(100% - (var(--nav-width) + 15rem));
    left: calc((var(--nav-width) + 15rem));
  }

  /*Expander SIDEBAR: Logo is visible when sidebar width is full.*/
  .sidebarCustom.expander  #nav-brand{
    display:flex;
    justify-content:flex-start;
    transition: all 0.4s ease;
  }

  #nav-brand >img {
      width: 50px;
      height: 50px;
      margin-top: 5px;
  }

  /*Expander SIDEBAR: Tooltip is not visible when sidebar width is full.*/
  .sidebarCustom.expander .custom-tooltip{
    display:none;
  }
  
  /*Expander SIDEBAR: Nav Names and Chevron Down is visible when sidebar width is full.*/
  .sidebarCustom.expander .collapse__link,
  .sidebarCustom.expander .nav__name{
    display:inline-block;
    opacity:1;
    transition: all .5s ease;
  }

  /*** Show collapse: when CHEVRON is UP ****/
  .showCollapse{
    display: flex;
    flex-direction: column;
  }

  /*Rotate icon CHEVRON*/
  .rotate{
    transform: rotate(90deg);
  }
