/* ==========================================================================
   base.css -- Reset, Typography, CSS Custom Properties, Theme Definitions
   Unified theme variables extracted from customer + admin dashboards.
   Dark theme is default. Light theme activates via html.light class.
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Dark Theme (default) --- */
:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --accent: #00CEC9;
  --accent-light: #22D3EE;
  --bg: #0A0A0F;
  --bg-card: #13131A;
  --bg-input: #1A1A24;
  --text: #E8E8ED;
  --text-dim: #8888A0;
  --border: #2A2A3A;
  --success: #00B894;
  --warning: #FDCB6E;
  --danger: #FF7675;
}

/* --- Light Theme --- */
html.light {
  --bg: #F8F9FA;
  --bg-card: #FFFFFF;
  --bg-input: #F0F0F5;
  --text: #1A1A2E;
  --text-dim: #6B7280;
  --border: #E5E7EB;
  --danger: #DC2626;
}

/* --- Body --- */
body {
  font-family: var(--script-font, 'Inter'), 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* --- Typography --- */
h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

/* --- Links --- */
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--primary);
}

/* --- RTL / Arabic Script Support --- */
html.arabic-script * {
  letter-spacing: 0 !important;
}

html.arabic-script body {
  line-height: 1.8;
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
