@sidebarOptionSelector: cr-sidebar-option;

.@{sidebarOptionSelector} {
  position: relative;
  display: block;
  padding: 0 12px 0 20px;
  margin: 8px 0;

  &--disabled {
    opacity: 0.3;
    cursor: none;
    pointer-events: none;
  }

  &__content {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 10px;

    &--collapsed label {
      opacity: 0;
      z-index: -1;
      transition: 0.3s;
    }

    &:hover,
    &--active {
      background-color: #eff5f1;
    }

    &--active {
      &::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        top: 0;
        width: 6px;
        background-color: #2c3b38;
        border-radius: 0 10px 10px 0;
      }

      .@{sidebarOptionSelector} {
        color: #2c3b38;
        svg {
          fill: #2c3b38;
          color: #2c3b38;
        }
      }

      .@{sidebarOptionSelector} {
        color: #2c3b38;
      }
    }
  }

  &__icon {
    color: #3f3d56;
    cursor: pointer;
    line-height: 26px;
    font-size: 26px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    svg {
      color: #3f3d56;
      fill: #3f3d56;
    }
  }

  &__label {
    opacity: 1;
    z-index: 1;
    transition: 0.3s;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #3f3d56;
    cursor: pointer;
    white-space: nowrap;
  }
}
