/**
 * Custom styles to override WindPress/Tailwind
 */

/* Range Slider with Tooltip Styles */
.range-slider-container {
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 50px;
  background: var(--color-gray-200);
  outline: none;
  background: linear-gradient(to right, var(--color-primary-600) 0%, var(--color-primary-600) 50%, var(--color-gray-200) 50%, var(--color-gray-200) 100%);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 1px solid var(--color-gray-50);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.range-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: 1px solid var(--color-gray-50);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.range-slider-tooltip {
  position: absolute;
  background-color: var(--color-gray-900);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  top: 45px;
  pointer-events: none;
  display: block;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.range-slider-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--color-gray-900) transparent transparent transparent;
}
