/* Khmer AI Dub — Mobile-First Responsive Stylesheet (iPhone Safari Optimized) */
:root {
  --bg-primary: #0b0f19;
  --bg-card: #131b2e;
  --bg-elevated: #1c2742;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-gold: #f59e0b;
  --accent-gold-hover: #d97706;
  --border-subtle: rgba(148, 163, 184, 0.16);
}

html.light-theme {
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --border-subtle: rgba(15, 23, 42, 0.12);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans Khmer', sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.app-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
}

.app-elevated {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.text-muted-custom {
  color: var(--text-secondary);
}

.tab-btn-active {
  background-color: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
}

html.light-theme .tab-btn-active {
  background-color: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.4);
}

.khmer-text {
  font-family: 'Noto Sans Khmer', 'Inter', sans-serif;
  line-height: 1.65;
}
