/*
 * Option slider — tab-style toggle in Ui::Elements::SliderComponent.
 *
 * Note: the existing slider Stimulus controller and the dynamic
 * positioning rules in hms.css both depend on the class names
 * .slider-container, .slider-background, and .slider-option — those
 * are kept verbatim.
 */

.slider-container {
  position: relative;
  display: inline-block;
}

.slider-track {
  display: flex;
  background-color: var(--color-surface-subtle);
  border-radius: var(--radius-lg);
  padding: 0.25rem;
  position: relative;
}

.slider-background {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.slider-option {
  position: relative;
  z-index: 10;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: 0;
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-option--selected {
  color: var(--color-ink);
}

.slider-option:not(.slider-option--selected) {
  color: var(--color-ink-light);
}
