/* ── Slider component styles ── */

.rlb-slider-demo {
  margin-bottom: 2rem;
}

.rlb-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 1rem 0;
}

/* Track */
.rlb-slider-track {
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--border-radius);
  cursor: pointer;
}

/* Filled portion of track */
.rlb-slider-track__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--focus-color);
  border-radius: var(--border-radius);
  pointer-events: none;
}

/* Thumb (>= 24x24 target) */
.rlb-slider-thumb {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  background: var(--surface-color);
  border: 3px solid var(--focus-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}

.rlb-slider-thumb:focus {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--surface-color);
}

.rlb-slider-thumb:active {
  cursor: grabbing;
}

/* Value display */
.rlb-slider-value {
  min-width: 3rem;
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
}
