@import '../../styles/app';

.root {
  width: $sidebar-width-open;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: $sidebar-bg-color;
  color: $sidebar-color;
  overflow-y: auto;
  margin-left: 15px;
  transition: height 1s;
  transform: translateX(-$sidebar-width-open);

  @media print {
    display: none;
  }

  :global(.sidebar-right) & {
    left: auto;
    right: 0;
    margin-left: 0;
    margin-right: 15px;
    transform: translateX($sidebar-width-open);
  }

  :global(.sidebar-hide) & {
    display: none;
  }
  
  @include scroll-bar($sidebar-scrollbar-bg);


  @media (max-width: breakpoint-max(sm)) {
    position: static !important;
    width: 100%;
    margin-left: 0;
    padding: 0 15px;
    height: 0;
    transform: none;

    .logo,
    .sidebarAlerts,
    .sidebarLabels,
    .navTitle {
      display: none;
    }
  }
}

.logo {
  margin: 20px 0 55px;
  font-size: 18px;
  width: 100%;
  font-weight: $font-weight-thin;
  text-align: center;
  // text-shadow: 4px 4px 15px rgba(57, 121, 246, 0.3);
  text-transform: uppercase;

  a {
    color: $icon-color;
    padding: 0 5px;
    text-decoration: none;
    white-space: nowrap;
  }
}

.sidebarOpen {
  height: auto !important;
}

.sidebarClose .logo {
  width: 50px;
}

.staticSidebar .logo {
  width: 100%;
  transition: none;
}

.nav {
  overflow-y: auto;
  overflow-x: hidden;

  li > a > span {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    //
  } 
}

.navTitle {
  margin: 25px 0 0 20px;
  font-size: 13px;
  font-weight: $font-weight-bold;
  color: #A5A7B850;
  transition: opacity $sidebar-transition-time ease-in-out;

  @media (min-width: breakpoint-min(lg)) {
    opacity: 1;
  }
}

.sidebarClose .navTitle {
  opacity: 0;
}

.staticSidebar .navTitle {
  opacity: 1;
  transition: none;
}

.actionLink {
  color: #aaa;
  float: right;
  margin-right: 15px;
  margin-top: -1px;
}

.labelName {
  font-size: 1rem;
  margin-left: 10px;
  font-weight: $font-weight-thin;
  color: $main-gray;
  opacity: 1;
  transition: opacity $sidebar-transition-time ease-in-out;
}

.sidebarClose .labelName {
  opacity: 0;
}

.staticSidebar .labelName {
  transition: none;
  opacity: 1;
}

.glyphiconSm {
  font-size: 9px;
}

.sidebarLabels {
  list-style-type: none;
  padding: 15px 20px;
  padding-right: 15px;

  > li + li {
    margin-top: 20px;
  }

  li > a {
    font-size: $font-size-mini;
    color: $sidebar-color;
    text-decoration: none;

    > i {
      font-size: 6px;
      vertical-align: 2px;
      transition: margin-left $sidebar-transition-time ease-in-out;
    }
  }
}

.sidebarClose {
  .sidebarLabels > li > a > i {
    margin-left: 8px;
    transition: margin-left $sidebar-transition-time ease-in-out;
  }
}

.staticSidebar {
  .sidebarLabels > li > a > i {
    transition: none;
    margin-left: 0;
  }
}

.sidebarAlerts {
  margin-top: 15px;
  margin-bottom: $spacer * 2;
  transition: opacity $sidebar-transition-time ease-in-out;
  opacity: 1;
}

.sidebarClose .sidebarAlerts {
  opacity: 0;
}

.staticSidebar .sidebarAlerts {
  opacity: 1;
  transition: none;
}

.sidebarAlert {
  font-size: $font-size-mini;
  font-weight: $font-weight-normal;
  background: transparent;
  color: $main-gray;
  margin-bottom: 0;
  margin-right: 2px;
  padding: 0.5rem 11px 0.5rem 10px !important;
  padding-right: 15px;
  
  button > span {
    color: $icon-color;
    font-weight: $font-weight-normal;
  }

  .alertFooter {
    color: #A5A7B850;
  }  
}

.groupTitle {
  margin-bottom: 15px;
}

.menuIcon {
  fill: $icon-color;
}

