:root {
  --theme-primary: #f53324;
  --theme-primary-hover: #f53324;
  --theme-secondary: #1e3a5a;
  --theme-dark-palette: #fb7185;
  --theme-bg: #fafaf9;
  --theme-font-base: "Poppins", Arial, "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
  --theme-navbar-bg: #ffffff;
  --theme-navbar-text: #0f172a;
  --nav-glass-btn-bg: #f1f5f9;
  --nav-glass-btn-color: #475569;
  --theme-sidebar-bg: #f4f4f5;
  --theme-sidebar-panel-header-bg: #ebe9ec;
  --theme-sidebar-panel-header-title: #334155;
  --theme-sidebar-panel-header-icon: #475569;
  --theme-sidebar-text: #334155;
  --theme-footer-bg: #0f172a;
  --theme-footer-text: #94a3b8;
  --theme-footer-heading: #ffffff;
  --landing-hero-grad-start: #1e1b4b;
  --landing-hero-grad-end: #9f1239;
  --landing-hero-text: #ffffff;
  --landing-hero-muted: #fecaca;
  --landing-surface: #ffffff;
  --landing-surface-muted: #fff5f5;
  --landing-border: #e2e8f0;
  --landing-cta-bg: #f53324;
  --spedire-primary: var(--theme-primary);
  --spedire-primary-hover: var(--theme-primary-hover);
  --spedire-accent: var(--theme-secondary);
  --spedire-bg: var(--theme-bg);
  --spedire-font-base: var(--theme-font-base);
  --spedire-text: #202223;
  --spedire-border: #e0e3e4;
  --brand-primary-color: var(--theme-primary);
  --brand-primary-hover-color: color-mix(in srgb, var(--theme-primary) 86%, #000);
  --brand-secondary-color: var(--theme-secondary);
  --primary-color: var(--theme-primary);
  --primary-hover-color: var(--brand-primary-hover-color);
  --accent-color: var(--theme-secondary);
  --dark-slate-color: color-mix(in srgb, var(--theme-secondary) 25%, #0f172a);
  --light-contrast-bg: var(--theme-bg);
  --border-color: var(--spedire-border);
  --text-color: var(--spedire-text);
}

html { font-size: 14px; }
body { font-family: var(--theme-font-base); background: var(--theme-bg); }
.text-primary { color: var(--theme-primary) !important; }
.bg-primary { background-color: var(--theme-primary) !important; }
.btn-primary { background-color: var(--theme-primary) !important; border-color: transparent !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--theme-primary-hover) !important; border-color: transparent !important; }
.form-control:focus, .form-select:focus { border-color: var(--theme-secondary) !important; box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-secondary) 20%, transparent) !important; }

html[data-theme="dark"] {
  --theme-primary: #fb7185;
  --theme-primary-hover: #fb7185;
  --theme-dark-palette: #fb7185;
  --dark-body-bg: #0f172a;
  --dark-card-bg: #111827;
  --dark-border-color: #334155;
  --dark-text-color: #e5e7eb;
  --dark-muted-color: #94a3b8;
  --dark-link-color: #fb7185;
  --dark-navbar-bg: #151c2c;
  --dark-navbar-text-color: #f1f5f9;
  --dark-nav-tray-bg: #273549;
  --dark-nav-tray-icon: #cbd5e1;
  --dark-sidebar-bg: #151c2c;
  --dark-sidebar-text-color: #cbd5e1;
  --dark-sidebar-header-bg: #1a2234;
  --dark-sidebar-header-title: #f8fafc;
  --dark-sidebar-header-icon: #94a3b8;
  --dark-input-bg: #0b1220;
  --spedire-bg: #0f172a;
  --spedire-text: #e5e7eb;
  --spedire-border: #334155;
  --spedire-accent: #fb7185;
  --spedire-primary: #fb7185;
  --spedire-primary-hover: color-mix(in srgb, #fb7185 86%, #000);
  --theme-navbar-bg: #151c2c;
  --theme-navbar-text: #f1f5f9;
  --nav-glass-btn-bg: #273549;
  --nav-glass-btn-color: #cbd5e1;
  --theme-sidebar-bg: #151c2c;
  --theme-sidebar-text: #cbd5e1;
  --theme-sidebar-panel-header-bg: #1a2234;
  --theme-sidebar-panel-header-title: #f8fafc;
  --theme-sidebar-panel-header-icon: #94a3b8;
  --theme-footer-bg: #0f172a;
  --theme-footer-text: #94a3b8;
  --theme-footer-heading: #e5e7eb;
  --light-contrast-bg: var(--spedire-bg);
  --dark-slate-color: var(--spedire-text);
  --brand-primary-color: var(--theme-primary);
  --brand-primary-hover-color: color-mix(in srgb, var(--theme-primary) 86%, #000);
  --text-color: var(--spedire-text);
  --border-color: var(--spedire-border);
  --landing-surface: var(--dark-card-bg);
  --landing-surface-muted: color-mix(in srgb, var(--dark-card-bg, #111827) 82%, #020617);
  --landing-border: var(--spedire-border);
}
html[data-theme="dark"] body { background: var(--spedire-bg); color: var(--spedire-text); }
