/* noUiSlider Base Styles (required for functionality) - Admin namespace only */
.admin .noUi-target,
.admin .noUi-target * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  -ms-user-select: none;
  -moz-user-select: none;
  user-select: none;
  box-sizing: border-box;
}

.admin .noUi-target {
  position: relative;
}

.admin .noUi-base,
.admin .noUi-connects {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.admin .noUi-connects {
  overflow: hidden;
  z-index: 0;
}

.admin .noUi-connect,
.admin .noUi-origin {
  will-change: transform;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  transform-origin: 0 0;
  transform-style: flat;
}

.admin .noUi-horizontal .noUi-origin {
  height: 0;
}

.admin .noUi-handle {
  backface-visibility: hidden;
  position: absolute;
}

.admin .noUi-touch-area {
  height: 100%;
  width: 100%;
}

.admin .noUi-state-tap .noUi-connect,
.admin .noUi-state-tap .noUi-origin {
  transition: transform 0.3s;
}

.admin .noUi-state-drag * {
  cursor: inherit !important;
}

/* noUiSlider Tooltip */
.admin .noUi-tooltip {
  display: block;
  position: absolute;
  text-align: center;
  white-space: nowrap;
}

.admin .noUi-horizontal .noUi-tooltip {
  transform: translate(-50%, 0);
  left: 50%;
  bottom: 120%;
}

/* noUiSlider Range Slider Custom Styles */
.admin .rangeSliderCommon .noUi-target {
  @apply border-none bg-transparent shadow-none;
}

.admin .rangeSliderCommon .noUi-horizontal {
  height: 6px !important;
}

.admin .rangeSliderCommon .noUi-horizontal .noUi-base {
  height: 100% !important;
}

.admin .rangeSliderCommon .noUi-connects {
  @apply rounded-full bg-stroke;
  height: 100% !important;
}

.admin.dark .rangeSliderCommon .noUi-connects {
  @apply bg-strokedark;
}

.admin .rangeSliderCommon .noUi-connect {
  @apply rounded-full bg-primary;
}

/* Style 1: Solid handle - position handle centered on track */
.admin .rangeSliderOne .noUi-horizontal .noUi-handle {
  @apply rounded-full border-none bg-primary shadow-none;
  width: 22px !important;
  height: 22px !important;
  top: -8px !important;
  right: -11px !important;
  cursor: pointer;
}

/* Style 2: Ring handle - position handle centered on track */
.admin .rangeSliderTwo .noUi-horizontal .noUi-handle {
  @apply rounded-full border-[6px] border-primary bg-white shadow-none;
  width: 24px !important;
  height: 24px !important;
  top: -9px !important;
  right: -12px !important;
  cursor: pointer;
}

.admin.dark .rangeSliderTwo .noUi-horizontal .noUi-handle {
  @apply bg-black;
}

/* Remove default noUiSlider handle decorations */
.admin .rangeSliderCommon .noUi-horizontal .noUi-handle:after,
.admin .rangeSliderCommon .noUi-horizontal .noUi-handle:before {
  display: none !important;
}

/* Disabled state */
.admin .rangeSliderCommon [disabled] .noUi-connect {
  @apply bg-bodydark;
}

.admin .rangeSliderCommon [disabled] .noUi-handle {
  @apply cursor-not-allowed;
}

.admin .rangeSliderOne [disabled] .noUi-handle {
  @apply bg-bodydark;
}

.admin .rangeSliderTwo [disabled] .noUi-handle {
  @apply border-bodydark;
}

/* Tooltip styles */
.admin .rangeSliderCommon .noUi-tooltip {
  @apply rounded bg-primary px-2 py-1 text-xs font-bold text-white border-none;
}

.admin.dark .rangeSliderCommon .noUi-tooltip {
  @apply bg-primary text-white;
}
