
/* Custom Range Slider Styles */
input[type="range"].slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"].slider::-webkit-slider-track {
  background: currentColor;
  height: 0.5rem;
  border-radius: 0.5rem;
}

input[type="range"].slider::-moz-range-track {
  background: currentColor;
  height: 0.5rem;
  border-radius: 0.5rem;
}

input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: white;
  border: 3px solid currentColor;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"].slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

input[type="range"].slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

input[type="range"].slider::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: white;
  border: 3px solid currentColor;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"].slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

input[type="range"].slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.05);
}

/* Dual Range Slider - Only thumbs are interactive */
input[type="range"].slider-thumb-pointer {
  pointer-events: none;
}

input[type="range"].slider-thumb-pointer::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: white;
  border: 2px solid #3b82f6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"].slider-thumb-pointer::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

input[type="range"].slider-thumb-pointer::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: #2563eb;
}

input[type="range"].slider-thumb-pointer::-moz-range-thumb {
  pointer-events: auto;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: white;
  border: 2px solid #3b82f6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s;
}

input[type="range"].slider-thumb-pointer::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4);
}

input[type="range"].slider-thumb-pointer::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
  border-color: #2563eb;
}

/* Pull to Refresh Indicator */
.pull-to-refresh-indicator {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  pointer-events: none;
  will-change: transform, opacity;
}

.pull-to-refresh-indicator.ready {
  color: #10b981; /* green-500 */
}

.pull-to-refresh-indicator.refreshing {
  color: #3b82f6; /* blue-500 */
}

/* Spinner animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pull-to-refresh-spinner {
  animation: spin 1s linear infinite;
}
