.visual-slider {
  margin-bottom: 1.5rem;

  label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #aaa;
  }

  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(
      to right,
      rgba(104, 95, 255, 0.3) 0%,
      rgba(104, 95, 255, 0.8) 50%,
      rgba(104, 95, 255, 1) 100%
    );
    outline: none;
    cursor: pointer;
    margin-top: 0.5rem;

    &::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--accent-color, #685fff);
      cursor: pointer;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    }

    &::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--accent-color, #685fff);
      cursor: pointer;
      box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
      border: none;
    }
  }

  .scale-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    position: relative;

    span {
      font-size: 0.75rem;
      color: var(--gray-500, #aaa);

      &:first-child,
      &:last-child {
        font-weight: 500;
        color: var(--gray-400, #bbb);
      }

      &.current-value {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        color: var(--accent-color, #685fff);
        font-weight: 600;
        background-color: rgba(104, 95, 255, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.8rem;
      }
    }
  }
}
