$secondary-color: #22b7bd;
$primary-color: #373068;

.bg-default-gradient {
  background-image: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#9f78ff),
    to(#32cafe)
  );
  background-image: -webkit-linear-gradient(left, #9f78ff, #32cafe);
  background-image: -moz-linear-gradient(left, #9f78ff, #32cafe);
  background-image: -o-linear-gradient(left, #9f78ff, #32cafe);
  background-image: linear-gradient(to right, #9f78ff, #32cafe);
  background-repeat: repeat-x;
}

.main-app-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  .app-main-wrapper {
    > section {
      background-color: rgba(255, 255, 255, 0.6);
    }
  }

  .app-main-navigation {
    max-width: 260px;
    width: 100%;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
    background: #66cdd0;
    background-image: linear-gradient(to bottom, #33346e, #22b7bd);
  }

  .app-main-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.app-main-navigation {
  transition: all ease-in 0.5s;

  &.collapsed {
    max-width: 64px !important;

    .nav-item {
      padding: 0.02rem;

      .menu-title {
        display: none;
      }

      .badge {
        display: none;
      }
    }
  }

  .navigation {
    width: 100%;
    padding: 0;

    svg {
      path {
        fill: #fff;
      }
    }

    .nav-item {
      list-style: none;
      padding: 0.02rem;
      position: relative;
      color: #fff;
      width: 100%;
      text-align: center;

      > a {
        display: block;
        padding: 1rem 0;
        mat-icon {
          width: 100%;
          height: 36px;
        }
      }

      &.has-sub {
        .menu-content {
          transition: all ease-in 0.2s;
          opacity: 0;
          visibility: hidden;
          position: absolute;
          left: 50%;
          top: 0;
          z-index: 9;
          background: #f2ffff;
          padding: 0;
          min-width: 220px;
          overflow: hidden;
          box-shadow: 3px 0px 5px #aaa;
          .menu-title {
            width: 100%;
            display: block;
            background-color: $secondary-color;
            padding: 1.58rem 1rem;
            color: #fff;
          }
          li {
            padding: 0.5rem 1rem;
            color: $primary-color;
          }
        }

        &:hover {
          background-color: $secondary-color;
          // box-shadow: 10px 0px 55px #111;
          .menu-content {
            left: 100%;
            visibility: visible;
            opacity: 1;
          }
        }
      }
    }
  }
}

.main-menu-logo {
  max-height: 100px;
  text-align: center;
  background-color: #fff;
  a {
    display: flex;
  }

  img {
    width: 64px;
    padding: 0 0 1rem 0;
  }
}

::ng-deeep {
  #main-menu-navigation {
    svg {
      fill: #fff !important;
      path {
        fill: #fff !important;
      }
    }
  }
}

.sidebarMenu {
  position: fixed;
  background: $primary-color;
  width: 260px;
  height: 100%;
  z-index: 9;
  top: 78px;
  padding: 2rem 1rem;

  ul {
    padding: 0;
    list-style: none;
    li {
      background-color: #1b1546;
      padding: 15px;
      border-radius: 6px;
      margin-bottom: 6px;

      a {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        color: #fff;
        gap: 5px;
      }
    }
  }
}

.relative {
  position: relative !important;
}

.app-body {
  overflow: auto;
  position: relative;
  width: 100%;
  height: 100%;
}
