.wrapper {
  position: relative;
  display: inline-block;
}

.trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  min-width: 120px;
  transition: border-color 0.15s;
  white-space: nowrap;
}

.trigger:hover,
.trigger:focus {
  border-color: var(--color-primary);
}

.label {
  flex: 1;
}

.placeholder {
  flex: 1;
  color: var(--color-text-disabled);
}

.arrow {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform 0.2s;
}

.arrowOpen {
  transform: rotate(180deg);
}

.menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--color-bg-dropdown);
  border: 1px solid var(--color-border-card);
  border-radius: 8px;
  padding: 4px;
  z-index: 1000;
  backdrop-filter: var(--bf-glass-md);
  -webkit-backdrop-filter: var(--bf-glass-md);
  box-shadow:
    0 8px 32px var(--color-shadow-dropdown),
    inset 0 1px 0 var(--color-inset-highlight);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 240px;
  overflow-y: auto;
}

.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--color-text-monochrome);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}

.item:hover {
  background: var(--color-border-soft);
  color: var(--color-text-primary);
}

.item.selected {
  color: var(--color-primary);
}

.check {
  margin-left: auto;
  opacity: 0;
  flex-shrink: 0;
}

.item.selected .check {
  opacity: 1;
}

/* Scrollbar */
.menu::-webkit-scrollbar {
  width: 4px;
}

.menu::-webkit-scrollbar-track {
  background: transparent;
}

.menu::-webkit-scrollbar-thumb {
  background: var(--color-progress-track);
  border-radius: 2px;
}
