@import '../../styles/app';
.sidebar {
  color: $sidebar-color;
  margin-left: 15px;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;

  // Thin scrollbar styling - hidden until hover
  &::-webkit-scrollbar {
    width: 5px;
  }

  &::-webkit-scrollbar-track {
    background: transparent;
  }

  &::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.2s ease;
  }

  &:hover::-webkit-scrollbar-thumb {
    background: rgba($white, 0.2);
  }

  &:hover::-webkit-scrollbar-thumb:hover {
    background: rgba($white, 0.3);
  }

  @include media-breakpoint-up('md') {
    position: fixed;
    left: 0;
    top: 0;
    width: $sidebar-width;
    bottom: 0;
    z-index: 99;
  }

  // Sidebar on the right side
  &.sidebar-right {
    margin-left: 0;
    margin-right: 15px;

    @include media-breakpoint-up('md') {
      left: auto;
      right: 0;
    }
  }
}

.logo {
  margin: 15px 0;
  font-size: 18px;
  width: 100%;
  font-weight: $font-weight-thin;
  text-align: center;
  text-transform: uppercase;
  transition: width $sidebar-transition-time ease-in-out;

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

  @include media-breakpoint-down('sm') {
    display: none;
  }
}

.generator-link {
  display: block;
  color: var(--sidebar-color-item)!important;
  text-decoration: none;
  cursor: pointer;
  font-size: 16px!important;
}

.nav {
  width: 100%;
  padding: 30px 0 10px;
  flex-shrink: 0;
}

.navTitle {
  margin: 35px 0 5px 11px;
  font-size: $font-size-larger !important;
  font-weight: $font-weight-thin !important;
  color: $text-color !important;
  transition: opacity $sidebar-transition-time ease-in-out;

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

.actionLink {
  color: $gray-500;
  float: right;
  margin-right: 15px;
  margin-top: -1px;

  .la {
    font-size: $font-size-sm;
    margin-top: 4px;
  }
}

.labelName {
  opacity: 1;
  transition: opacity $sidebar-transition-time ease-in-out;
}

.glyphiconSm {
  font-size: 9px;
}

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

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

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

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

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

.sidebarAlert {
  background: transparent;
  margin-bottom: 0;
  padding: 0.5rem 11px;
  padding-right: 15px;
}

.groupTitle {
  margin-top: 30px;
  margin-bottom: 5px;
}

.sidebar-collapse {
  @media (min-width: breakpoint-min('md')) {
    display: block !important;

    @media print {
      display: none !important;
    }
  }


}
