/* DarkPentra i18n — RTL + language switcher */

.dp-lang-switcher.dp-lang-toolbar {
  margin-bottom: 0;
  margin-left: 4px;
  flex-shrink: 0;
}

.dp-lang-switcher {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
}

.dp-lang-btn {
  flex: 1;
  min-height: 32px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 11px;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dp-lang-btn.active {
  background: rgba(139, 92, 246, 0.25);
  color: var(--purple-light, #c4b5fd);
}

.dp-lang-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #e2e8f0);
}

/* RTL layout */
html[dir="rtl"] body.dp-rtl .sidebar {
  border-left: none;
  border-right: 1px solid var(--border-glass);
}

html[dir="rtl"] .ov-command-actions {
  flex-direction: row-reverse;
}

html[dir="rtl"] .ov-foot-link,
html[dir="rtl"] .signal-action-hint {
  text-align: right;
}

html[dir="rtl"] .agent-row,
html[dir="rtl"] .vote-bar-row,
html[dir="rtl"] .rule-row,
html[dir="rtl"] .history-row {
  direction: rtl;
}

html[dir="rtl"] .chat-input {
  flex-direction: row-reverse;
}

html[dir="rtl"] .chat-input input {
  text-align: right;
}

html[dir="rtl"] .nav-item {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .sidebar-header .logo {
  flex-direction: row-reverse;
}

html[dir="rtl"] .ov-signals-table th,
html[dir="rtl"] .ov-signals-table td {
  text-align: right;
}

html[dir="rtl"] .market-table th,
html[dir="rtl"] .market-table td {
  text-align: right;
}

html[dir="rtl"] .signals-panel .sheet-header,
html[dir="rtl"] .signals-panel .panel-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .llm-model-row {
  direction: rtl;
}

html[dir="rtl"] .back-link {
  flex-direction: row-reverse;
}

/* Charts mobile bottom nav — RTL order */
html[dir="rtl"] .mobile-bottom-nav {
  flex-direction: row-reverse;
}

/* Auth pages */
html[dir="rtl"] .dp-auth-page {
  direction: rtl;
}

html[dir="rtl"] .dp-form-group input {
  text-align: right;
}
