/* Slide-to-verify slider component (BEM) */
.slider {
  margin: 30px auto 10px;
  max-width: 400px;
}

.slider__track {
  position: relative;
  height: 50px;
  border: 2px solid #ddd;
  border-radius: 25px;
  background: #f0f0f0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.slider__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #e3f2fd, #90caf9);
  border-radius: 25px;
  transition: none;
  pointer-events: none;
}

.slider__handle {
  position: absolute;
  top: 3px;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #007cba;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  cursor: grab;
  box-shadow: 0 2px 6px rgb(0, 0, 0, 0.2);
  transition: background-color 0.2s;
  z-index: 2;
  margin-inline: 3px;
}

.slider__handle:hover {
  background: #005a8a;
}

.slider__handle:focus {
  outline: 3px solid #90caf9;
  outline-offset: 2px;
}

.slider__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

/* Active state (while dragging) */
.slider__track--active .slider__handle {
  cursor: grabbing;
  background: #005a8a;
}

.slider__track--active .slider__fill {
  background: linear-gradient(90deg, #bbdefb, #64b5f6);
}

/* Complete state */
.slider__track--complete .slider__fill {
  background: linear-gradient(90deg, #c8e6c9, #66bb6a);
  width: 100%;
}

.slider__track--complete .slider__handle {
  background: #43a047;
  cursor: default;
  font-size: 20px;
}

.slider__hint {
  margin-top: 8px;
  color: #999;
  font-size: 12px;
}
