@import "../settings/variables";

.l-sidebar {
  background-color: $core-gray-96;
  padding: spacing(lg) 0;
  position: relative;

  &__button {
    padding: 0 spacing(lg);

    & + & {
      padding-top: spacing(sm);
    }
  }

  &__divider {
    margin: spacing(xl);
    border-bottom: 1px solid $core-gray-90;
    height: 1px;
  }

  &__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 spacing(xl) spacing(md);

    &__label {
      color: $core-gray-30;
      font-size: 16px;
    }

    &__action {
      color: $core-orange-50;
      cursor: pointer;
      font-size: 13px;
      line-height: 15px;
    }
  }

  &__menu {
    list-style: none;

    &__item {
      align-items: center;
      color: $core-gray-50;
      cursor: pointer;
      display: flex;
      font-size: 13px;
      line-height: 16px;
      position: relative;
      padding: spacing(sm) spacing(xl);
      transition: all 0.2s ease-in-out;

      &::after {
        background-color: transparent;
        content: "";
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        transition: all 0.2s ease-in-out;
        width: 5px;
      }

      &--active,
      &:active,
      &--hover,
      &:hover {
        &::after {
          background-color: $core-orange-50;
        }
      }

      &--hover,
      &:hover {
        background-color: $core-gray-90;
        color: $core-gray-15;
      }
    }
  }
}
