src/components/navigation/navigation.scss
@import '../../common/styles/functions';

.app-nav {
  text-align: left;
  overflow: auto;
  height: 100%;

  .app-nav-opener {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    border-radius: 50em;
    background: none;
    z-index: 1;
    font-size: 18px;
    display: none;

    @media screen and (max-width: 800px) {
      display: block;
    }

    &:hover {
      background: rgba(255, 255, 255, 0.2);
    }
  }

  .app-nav-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;

    @media screen and (max-width: 800px) { 
      display: none;
      width: 100%;
      height: 100%;
      position: fixed;
      left: 0;
      top: 0;
      overflow: auto;
      background: #3C3E6F;
      text-align: center;
      padding: 40px;
    }

    &.opened {
      display: flex;
    }

    .app-nav-section {
      width: 100%;

      &:last-child {
        margin-top: auto;
      }
    }

    .app-nav-section-header {
      color: v(navItemText, #fff);
      font-size: 12px;
      font-weight: bold;
      padding: 10px 20px 10px 20px;
      opacity: 0.7;
      letter-spacing: 1px;
    }

    .app-nav-links {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      align-self: flex-start;
    }

    a {
      display: block;
      color: v(navItemText, #fff);
      text-decoration: none;
      padding: 10px 20px;
      margin: 0;
      font-size: 14px;
      line-height: 1.3em;
      display: flex;
      align-items: center;
      gap: 8px;

      i {
        font-size: 14px;
        width: 14px;
        text-align: center;
      }

      cursor: pointer;
      transition: 0.2s background-color ease 0s;

      @media screen and (max-width: 800px) { 
        border-radius: 50em;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 10px;

        &:last-child {
          margin-bottom: 0;
        }
      }
  
      &:hover {
        background: v(navItemHoverBackground, #424479);
      }
  
      &.active {
        background: v(navItemActiveBackground, #57578f);
      }
    }

    .app-nav-logout {
      padding-bottom: 1rem;
    }
  }
}
