/* ============= Language Selector — Dashboard ============= */
.lang-selector {
  position: relative;
  z-index: 1000;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 6px 12px;
  color: var(--text-primary, #fff);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
  font-family: inherit;
}
.lang-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 260px;
  max-height: 360px;
  background: var(--bg-card, #1e1e30);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.lang-dropdown.open {
  display: flex;
  animation: langFade .18s ease;
}
@keyframes langFade {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lang-search {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary, #fff);
  font-size: .85rem;
  font-family: inherit;
}
.lang-search::placeholder {
  color: var(--text-muted, rgba(255,255,255,.4));
}

.lang-list {
  overflow-y: auto;
  max-height: 280px;
  padding: 6px;
}
.lang-list::-webkit-scrollbar { width: 6px; }
.lang-list::-webkit-scrollbar-track { background: transparent; }
.lang-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-primary, #fff);
  font-size: .85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
  text-align: left;
}
.lang-item:hover {
  background: rgba(255,255,255,.08);
}
.lang-item.active {
  background: rgba(124,92,252,.15);
  color: #a78bfa;
}
.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}
.lang-name {
  flex: 1;
}
.lang-check {
  font-size: .8rem;
  color: #a78bfa;
}
