/* ===========================
   Custom Nice Select Styling
   Updated for Modern UI
=========================== */

.nice-select {
  -webkit-tap-highlight-color: transparent;
  background: #ffffff;
  border: 1.8px solid #C7CBD2;
  border-radius: 10px;
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 16px;
  padding: 15px 45px 15px 18px;
  position: relative;
  text-align: left !important;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
  width: 100%;
  color: #111;
}

.nice-select:hover {
  border-color: #4A73FF;
}

.nice-select:focus,
.nice-select.open {
  border-color: #4A73FF;
  box-shadow: 0 0 0 3px rgba(74,115,255,0.18);
}

/* Dropdown arrow */
.nice-select:after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #6C738E;
  border-right: 2px solid #6C738E;
  transform: translateY(-50%) rotate(45deg);
  transition: 0.2s ease;
  pointer-events: none;
}

.nice-select.open:after {
  transform: translateY(-50%) rotate(-135deg);
}

/* Dropdown wrapper */
.nice-select .list {
  left: 0px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #E1E4EB;
  margin-top: 16px;
  opacity: 0;
  display: none;
  pointer-events: none;
  padding: 0;
  position: absolute;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  z-index: 9999;
  transform-origin: top;
  transform: scale(0.95) translateY(-10px);
  transition: all 0.18s cubic-bezier(0.5, 0, 0, 1.2);
}

.nice-select.open .list {
  opacity: 1;
  display: block;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* Scrollbar */
.nice-select .list::-webkit-scrollbar {
  width: 6px;
}
.nice-select .list::-webkit-scrollbar-thumb {
  background: #c9ced6;
  border-radius: 5px;
}

/* Dropdown option */
.nice-select .option {
  cursor: pointer;
  font-size: 15px;
  padding: 12px 16px;
  border-bottom: 1px solid #F1F3F7;
  transition: 0.18s ease;
}

.nice-select .option:last-child {
  border-bottom: none;
}

.nice-select .option:hover,
.nice-select .option.focus {
  background: #F4F7FF;
  color: #1b3dcc;
}

.nice-select .option.selected {
  font-weight: 600;
  background: #EEF2FF;
  color: #1B3DCC;
}

/* Disabled */
.nice-select.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Extra size variants */
.nice-select.small {
  padding: 10px 30px 10px 14px;
  font-size: 14px;
}

.nice-select.small .option {
  padding: 10px 12px;
}

/* Full width */
.nice-select.wide {
  width: 100%;
}

/* Fallback */
.no-csspointerevents .nice-select .list {
  display: none;
}
.no-csspointerevents .nice-select.open .list {
  display: block;
}
