@use "@tencentcloud/uikit-base-component-react/dist/styles/theme/util" as *;


$light-color-wave-default: rgba(0, 0, 0, 10%);
$light-color-wave-active: #4080ff;
$dark-color-wave-default: #e5e5e5;
$dark-color-wave-active: #4080ff;

.wave-form {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  height: 24px;
  cursor: pointer;
  padding: 0 2px;

  &__bar {
    flex: 1;
    width: 3px;
    border-radius: 1.5px;
    transition: background-color 0.2s ease;
    background-color: $light-color-wave-default;

    @include dark() {
      background-color: $dark-color-wave-default;
    }

    &--active {
      background-color: $light-color-wave-active;

      @include dark() {
        background-color: $dark-color-wave-active;
      }
    }
  }

  &__cursor {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: rgba(0, 0, 0, 20%);
    pointer-events: none;
  }
}
