/* css/translation.css */
/* ===== TRANSLATION SECTION ===== */
.translation-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

/* ===== TRANSLATION SWITCH CONTROLS ===== */
.translation-switch-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.hud-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.hud-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 10, 25, 0.9);
  border: 1px solid var(--hud-panel-border);
  transition: .3s cubic-bezier(0.1, 0.9, 0.2, 1);
  border-radius: 10px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s cubic-bezier(0.1, 0.9, 0.2, 1);
  border-radius: 50%;
}

input:checked + .slider {
  border-color: var(--hud-cyan);
  box-shadow: var(--hud-cyan-glow);
}

input:checked + .slider:before {
  transform: translateX(18px);
  background-color: var(--hud-cyan);
  box-shadow: var(--hud-cyan-glow);
}