.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: rgba(255, 255, 255, 0.9);
  padding-right: 18px !important; /* Override standard input-field */
}

.custom-select-trigger.open {
  background: #fff;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.custom-select-trigger.open .custom-select-arrow svg {
  stroke: var(--color-primary);
  transform: rotate(180deg);
}

.custom-select-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.custom-select-arrow svg {
  width: 100%;
  height: 100%;
  stroke: #64748b;
  transition: stroke 0.3s ease;
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid var(--bg-main);
}

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

.custom-select-option:hover {
  background: rgba(16, 185, 129, 0.05);
  color: var(--color-primary-dark);
}

.custom-select-option.selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

/* Custom Scrollbar for Options */
.custom-select-options::-webkit-scrollbar { width: 6px; }
.custom-select-options::-webkit-scrollbar-track { background: transparent; }
.custom-select-options::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-select-options::-webkit-scrollbar-thumb:hover { background: var(--color-primary-light); }
