/* ============================================
   CUSTOM SELECT COMPONENT
   ============================================ */

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

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

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

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-trigger .arrow {
  width: 12px;
  height: 12px;
  fill: #94a3b8;
  transition: transform var(--transition-fast);
}

.custom-select-wrapper.open .arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

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

.custom-select-option {
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.custom-select-option:hover {
  background: var(--bg-hover);
  color: var(--text-accent);
}

.custom-select-option.selected {
  background: var(--accent-gradient);
  color: var(--accent-contrast);
  font-weight: 500;
}
