@import "../mixin";
@import "../placeholder";

.menu-bar {

  &__container {
    padding: 1em;
    //background-color: #f8f8f8;
    //background-color: #f0f0f0;
    //background-color: var(--primary);
    //background: linear-gradient(to top, #81e6ff 0%, #00b6e3 100%);

    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #f1f1f1;
    width: 56px;

    justify-content: flex-start;

    &.expanded {
      width: var(--sidebar-width)!important;

      .dashboard-btn {
        span {
          display: inline-block;
        }
      }

      .system-btn {
        display: inline-block;
      }

      .link-bar__item {
        display: flex;
        flex-direction: column;
        list-style: none;
        //border-right: 2px solid transparent;

        .router-link-exact-active.router-link-active {
          //background-color: #ddd;
          background-image: linear-gradient(to left, rgba(255, 255, 255, 0.2), transparent);
          //border-left: 2px solid var(--primary);
          display: flex;
          justify-content: flex-start;
          align-items: center;


          //&::before {
          //  content: unset;
          //}
        }

        i {
          // width: 1.7em;
          // margin: unset;
          // padding: 0.3em;
          margin-left: 0.3em;
        }

        // @extend %pastil-color;

      }
    }

    .dashboard-btn {
      font-size: 1.2rem;
      text-align: right;
      line-height: 3.3;
      font-weight: bold;
      //padding: 0px 0.8em;
      padding: 0;
      color: #fff;

      span {
        display: none;
      }
    }

    .system-btn {
      display: none;
    }

    .link-bar__item {
      margin-bottom: 0.5em;
      transition: all 0.3s ease-in-out;


      a {
        font-size: 14px;
        //padding: 0 1em;
        padding: 0;
        justify-content: flex-start;
        line-height: 2.7;
        border-color: transparent;
        border-right: 2px solid transparent;
        display: flex;
        align-items: center;
        transition: all 0.3s ease-in-out;
        color: #555;
        position: relative;
        text-decoration: none;
        height: 2em;

        &:hover {
          color: var(--primary);

          //background-color: #ddd;
          //background-image: linear-gradient(to left, rgba(255, 255, 255, 0.2), transparent);
          //border-left: 2px solid var(--primary);

          i {
            background-image: linear-gradient(to top, #81e6ff 0%, #00b6e3 100%);
            -webkit-text-fill-color: transparent;

          }
        }

        &.router-link-exact-active.router-link-active {
          font-weight: 500;
          color: var(--primary);

          //background-color: #ededed;
          //background-color: #e8fcff;

          //&::before {
          //  content: "";
          //  display: flex;
          //  position: absolute;
          //  right: -0.5em;
          //  width: 0.5em;
          //  height: 0.5em;
          //  border-radius: 50%;
          //  overflow-x: hidden;
          //  background-color: var(--primary);
          //}

          i {
          -webkit-text-fill-color: transparent;

            background-image: linear-gradient(to top, #81e6ff 0%, #00b6e3 100%);
          }
        }

        i {
          //width: 1.4em;
          transition: all 0.3s ease-in-out;
          font-size: 23px;
          // background-image: linear-gradient(to top, #ddd 0%, #aaa 100%);
          //background-color: #fff;
          // -webkit-background-clip: text;
          // margin: auto;

          //display: flex;
          //justify-content: center;
          //align-items: center;
        }
      }

    }

  }


  &__link {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  &__meta {
    margin-top: auto;
  }

  &__content {
  }

}