:root {
  --nice-select-border-color: #e8e8e8;
  --nice-select-hover-border-color: #dbdbdb;
  --nice-select-active-border-color: #999;
  --nice-select-text-color: #333;
  --nice-select-arrow-color: #999;
  --nice-select-bg-color: #fff;
  --nice-select-hover-bg-color: #f6f6f6;
}

.nice-select {
  position: relative;
  display: block;
  width: 100%;
  height: 42px;
  line-height: 40px;
  background-color: var(--nice-select-bg-color);
  border: 1px solid var(--nice-select-border-color);
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  user-select: none;
  padding: 0 45px 0 18px;
  font-size: 14px;
  color: var(--nice-select-text-color);
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

.nice-select:hover {
  border-color: var(--nice-select-hover-border-color);
}

.nice-select:after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--nice-select-arrow-color);
  border-bottom: 2px solid var(--nice-select-arrow-color);
  transition: all 0.15s ease-in-out;
  pointer-events: none;
}

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

.nice-select .list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--nice-select-bg-color);
  border: 1px solid var(--nice-select-border-color);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9) translateY(-20px);
  transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25);
}

.nice-select.open .list {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.nice-select .list .option {
  padding: 0 18px;
  line-height: 40px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.nice-select .list .option:hover {
  background-color: var(--nice-select-hover-bg-color);
}

.nice-select .list .option.selected {
  font-weight: bold;
  background-color: var(--nice-select-hover-bg-color);
}

.nice-select .list .option.disabled {
  color: #999;
  cursor: default;
  background-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .nice-select {
      width: 100%;
  }
}