@import "../../variables.scss";

.DashboardNav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  .DashboardNavHead {
    padding-bottom: $pad + 30;
    text-align: center;
    position: relative;
    @media (max-width: $md) {
      padding: 0;
    }
    .DashboardLogo {
      display: block;
      max-width: 180px;
      margin: 0 auto $mrg + 5;
      img {
        display: block;
      }
      @media (max-width: $md) {
        max-width: 160px;
      }
    }
    span {
      display: block;
      font-size: $font + 10;
      color: $black;
      font-weight: $font-weight-heavy;
      @media (max-width: $md) {
        font-size: $font + 8;
      }
      small {
        display: block;
        font-weight: $font-weight-regular;
        font-size: $font + 6;
        @media (max-width: $md) {
          font-size: $font + 4;
        }
      }
    }
  }
  .DashboardNavList {
    padding-top: $pad + 30;
    @media (max-width: $md) {
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      width: 240px;
      left: -240px;
      transition: all 0.3s ease;
      background-color: $white;
      z-index: 9;
      box-shadow: 5px 10px 90px rgba($black, 0.1);
      padding: $pad + 5;
    }
    &.open {
      @media (max-width: $md) {
        left: 0;
      }
    }
    li {
      margin-bottom: $mrg + 20;
      @media (max-width: $lg) {
        margin-bottom: $mrg;
      }
      &:last-child {
        margin-bottom: 0;
      }
      a, button {
        display: flex;
        align-items: center;
        color: $text-grey2;
        padding: 0;
        border: none;
        text-decoration: none;
        width: 100%;
        @media (max-width: $lg) {
          font-size: $font + 4;
        }
        @media (max-width: $md) {
          font-size: $font + 6;
        }
        &:hover {
          color: $black;
          i {
            opacity: 1;
          }
        }
        i {
          display: block;
          width: 24px;
          flex: 0 0 24px;
          margin-right: $mrg;
          opacity: 0.5;
          transition: 0.3s;
          @media (max-width: $lg) {
            width: 20px;
            flex: 0 0 20px;
            margin-right: $mrg - 5;
          }
        }
        img {
          display: block;       
        }
      }
      button {
        position: relative;
        &:after {
          background: url(/assets/selectArrow.png) no-repeat;
          width: 14px;
          height: 8px;
          position: absolute;
          right: 0;
          top: 8px;
          content: "";
          border: none;
          background-size: cover;
        }
      }
      ul {
        margin-top: $pad + 10;
        background-color: #e5e5e5;
        border-radius: $bdr-rds;
        padding: $pad;
        padding-left: $pad + 25;
        li {
          margin-bottom: $mrg;       
        }
      }
      .active{
        font-weight: 800;
        color: black !important;
        i {
          opacity: 1;
        }
      }
    }
  }
  .DashboardFooter {
    font-size: $font + 4;
    color: $lightblue;
    @media (max-width: $md) {
      display: none;
    }
  }
  .MobileMenuButton {
    border: none;
    background: transparent;
    font-size: 24px;
    position: absolute;
    top: -5px;
    right: -8px;
    line-height: 30px;
    display: none;
    @media (max-width: $md) {
      display: block;
    }
  }
}