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

.trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--hull-grey, #3a3a4a);
  border-radius: 6px;
  color: var(--chrome-silver, #b0b0c0);
  font-family: var(--font-jetbrains, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.trigger:hover {
  border-color: var(--plasma-cyan, #00d4ff);
  color: var(--star-white, #eee);
}

.currentLang {
  font-size: 0.8rem;
}

.chevron {
  transition: transform 0.2s;
}

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

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 1000;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--space-black, #0a0a0f);
  border: 1px solid var(--hull-grey, #3a3a4a);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--chrome-silver, #b0b0c0);
  font-family: var(--font-jetbrains, 'JetBrains Mono', monospace);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.option:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--star-white, #eee);
}

.optionActive {
  color: var(--plasma-cyan, #00d4ff);
}

.optionActive:hover {
  color: var(--plasma-cyan, #00d4ff);
}

.langName {
  flex-shrink: 0;
}

.langTag {
  font-size: 0.7rem;
  color: var(--hull-grey, #3a3a4a);
  opacity: 0.7;
}

.optionActive .langTag {
  color: var(--plasma-cyan, #00d4ff);
  opacity: 0.6;
}
