/* ============================================
   Language Switcher – shared across all pages
   ============================================ */

.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: inherit;
  opacity: 0.55;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn.active {
  opacity: 1;
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
}

/* On dark backgrounds (e.g., dashboard dark-themed navbars) */
.lang-switcher--dark .lang-btn {
  color: #f8fafc;
  opacity: 0.7;
}

.lang-switcher--dark .lang-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.lang-switcher--dark .lang-btn.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
