.nice-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #c7c9d1 #f3f4f6;
}

/* WebKit (Chrome, Edge, Safari, Opera) */
.nice-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.nice-scrollbar::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.nice-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #d1d5db, #bfc3cc);
  border-radius: 999px;
  border: 2px solid #f3f4f6;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.nice-scrollbar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c7ccd4, #adb2bc);
}

.nice-scrollbar::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #b8bdc7, #9ea4af);
}

.field-2col { display: grid; grid-template-columns: 40px 1fr; align-items: center; }
.select2-container--tw .select2-selection__rendered{
  margin:0 !important; padding:0 !important;
  color:#111827 !important; font-size:15px;
}
.select2-container--tw .select2-selection__arrow{ display:none !important; }
.field-2col .select2-dropdown.s2-dd{
  position: absolute !important;
  left: -53px !important;
  right: 53px !important;
  width: auto !important;

  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 10px 20px rgba(0,0,0,.12) !important;
  overflow: hidden;
  z-index: 100000 !important;
  box-sizing: border-box;
}
.s2-dd .select2-results__option{ padding:12px 16px !important; color:#1f2937 !important; }
.s2-dd .select2-results__option--highlighted{ color:#fff !important; }
.field-2col.is-focus{
  border-color:#556B2F !important;
  border-radius:8px;
}
.field-2col:focus-within{
  border-color:#556B2F !important;
  border-radius:8px;
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    content: '' !important;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    content: '' !important;
}

.swiper-button-next svg,
.swiper-button-prev svg {
    width: 24px !important;
    height: 24px !important;
}

.swiper-button-next,
.swiper-button-prev {
    position: relative !important;
}

.swiper-slide.swiper-slide-active {
    --tw-border-opacity: 1 !important;
    border-color: #556B2F !important;
}

.swiper-slide.swiper-slide-active>.swiper-slide-active {
    --tw-text-opacity: 1;
    color: #556B2F;
}

.swiper-slide.swiper-slide-active>.flex .grid .swiper-slide-active {
    --tw-text-opacity: 1;
    color: #556B2F;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    position: absolute;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

/* Custom track (hidden default) */
input[type="range"]::-webkit-slider-runnable-track {
    height: 2px;
}

/* Custom thumb styling (Centered) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #556B2F;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 3;
    transform: translateY(-30%);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    border: 3px solid #556B2F;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    z-index: 3;
    transform: translateY(-30%);
}

/* Centering the range input itself */
.slider-container {
    position: relative;
    height: 18px; /* Adjust height to fit thumb */
}

#yt-frame {
    width: 100%;
    height: 400px;
    padding: 1rem 0;
}


/* CUSTOM SELECT 2 THEME */

/* Border luar dropdown Select2 */
.select2-container--default .select2-dropdown {
  border: 1px solid #556B2F;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Area pencarian di dalam dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #A3B18A;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

/* Efek fokus */
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #556B2F;
  box-shadow: 0 0 0 3px rgba(85,107,47,0.15);
}

/* Item hasil */
.select2-results__option {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
}

/* Hover item */
.select2-results__option--highlighted {
  background-color: #556B2F !important;
  color: #fff !important;
}

/* Warna teks terpilih */
.select2-selection__rendered {
  color: #333;
}

/* Border komponen utama (saat tertutup) */
.select2-container--default .select2-selection--single {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  height: 38px;
  padding: 4px 8px;
  transition: border-color .2s;
}

/* Fokus pada komponen utama */
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #556B2F;
}

/* Pastikan dropdown arrow (caret) benar-benar di tengah */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Styling tambahan opsional untuk tampilan lebih bersih */
.select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 28px;
}

.select2-container--default .select2-selection__rendered {
  color: #374151;
  font-size: 14px;
  line-height: normal;
  padding-left: 8px;
}

/* Scrollbar di dropdown Select2 */
.select2-results__options::-webkit-scrollbar {
  width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 6px;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
  background-color: #556B2F;
}

/* Firefox (scrollbar ramping juga di sana) */
.select2-results__options {
  scrollbar-width: thin;
  scrollbar-color: #9ca3af #f1f5f9;
}

@media screen and (max-width: 548px) {
    #yt-frame {
        height: 200px;
    }
}
