/* Official Flexify identity + complete semantic application modes. */
:root {

 --fb-burgundy:#4A1F2D;
  --fb-wine:#6F2A3D;
  --fb-champagne:#C9B18F;
  --fb-cream:#EFEAE4;
  --fb-ink:#2A2A2E;

 --fx-canvas:var(--fb-cream);
  --fx-surface:#FFFFFF;
  --fx-surface2:#F7F4F0;
  --fx-surface3:#E6DED7;

 --fx-text:var(--fb-ink);
  --fx-muted:#65545A;
  --fx-muted2:#65545A;
  --fx-placeholder:#65545A;

 --fx-border:#B8A6AB;
  --fx-border2:#D6C9CC;
  --fx-control-border:#8F777F;

 --fx-primary:var(--fb-burgundy);
  --fx-primary2:var(--fb-wine);
  --fx-on-primary:#FFFFFF;
  --fx-primary-hover:var(--fb-wine);

 --fx-selected:#F3E8ED;
  --fx-on-selected:#4A1F2D;
  --fx-link:#6F2A3D;
  --fx-focus:#6F2A3D;

 --fx-input:#FFFFFF;
  --fx-disabled:#E6DED7;
  --fx-hover:#F3EDE7;
  --fx-overlay:rgba(25,17,22,.52);

 --fx-success:#176043;
  --fx-success-soft:#E6F2EA;
  --fx-warning:#77490D;
  --fx-warning-soft:#FDF1DD;

 --fx-danger:#A1243C;
  --fx-danger-soft:#FBE9EC;
  --fx-info:#654D81;
  --fx-info-soft:#F1EBF8;

 --fx-shadow:0 12px 40px rgba(74,31,45,.08);
  --fx-shadow2:0 2px 8px rgba(74,31,45,.04);

 --fx-sidebar:var(--fb-burgundy);
  --fx-sidebar-text:#EFEAE4;
  --fx-sidebar-muted:#D7C4C9;
  --fx-sidebar-selected:#C9B18F;
  --fx-sidebar-on-selected:#4A1F2D;

 --fx-chart-1:#6F2A3D;
  --fx-chart-2:#176043;
  --fx-chart-3:#654D81;
  --fx-chart-4:#77490D;

 --fx-radius-sm:8px;
  --fx-radius:16px;
  --fx-radius-lg:24px;
  --fx-fast:140ms;
  --fx-duration:220ms;

 --fx-font-ar:'Noto Sans Arabic',Tahoma,Arial,sans-serif;
  --fx-font-en:'Inter',Arial,sans-serif;

 /* Native-density metrics. Text stays readable; touch targets expand separately. */
 --fx-font-body:14px;
  --fx-font-meta:13px;
  --fx-font-title:24px;
  --fx-font-section:18px;
  --fx-line-body:1.65;
  --fx-page-space:20px;
  --fx-card-space:14px;
  --fx-section-gap:12px;
  --fx-control-height:36px;
  --fx-control-pad:6px 10px;
  --fx-table-pad:8px 12px;
  --fx-sidebar-width:224px;
  --fx-topbar-height:64px;
  --fx-bottom-height:64px;
  --fx-keyboard-inset:0px;

 color-scheme:light;

}

html[data-theme=dark] {

 --fx-canvas:#181619;
  --fx-surface:#242125;
  --fx-surface2:#302B30;
  --fx-surface3:#3B3339;

 --fx-text:#EFEAE4;
  --fx-muted:#C9BDB6;
  --fx-muted2:#C9BDB6;
  --fx-placeholder:#C9BDB6;

 --fx-border:#756771;
  --fx-border2:#4E424C;
  --fx-control-border:#8E7B87;

 --fx-primary:#C9B18F;
  --fx-primary2:#E0CAB0;
  --fx-on-primary:#2A1720;
  --fx-primary-hover:#E0CAB0;

 --fx-selected:#49323E;
  --fx-on-selected:#F6DFCC;
  --fx-link:#E0CAB0;
  --fx-focus:#E0CAB0;

 --fx-input:#302B30;
  --fx-disabled:#3B3339;
  --fx-hover:#3B3339;
  --fx-overlay:rgba(10,7,9,.7);

 --fx-success:#93D3B0;
  --fx-success-soft:#18362A;
  --fx-warning:#F1C584;
  --fx-warning-soft:#43311A;

 --fx-danger:#FFA8B7;
  --fx-danger-soft:#44202C;
  --fx-info:#D9BEF2;
  --fx-info-soft:#362641;

 --fx-shadow:0 12px 40px rgba(0,0,0,.24);
  --fx-shadow2:0 2px 8px rgba(0,0,0,.12);

 --fx-chart-1:#E0CAB0;
  --fx-chart-2:#93D3B0;
  --fx-chart-3:#D9BEF2;
  --fx-chart-4:#F1C584;

 color-scheme:dark;

}

/* Existing Admin components consume the same semantic values, not a second palette. */
:root{
  --bg:var(--fx-canvas);
  --panel:var(--fx-surface);
  --panel2:var(--fx-surface2);
  --text:var(--fx-text);
  --muted:var(--fx-muted);
  --line:var(--fx-border2);
  --input:var(--fx-input);
  --primary:var(--fx-primary);
  --primary-soft:var(--fx-selected);
  --success:var(--fx-success);
  --success-soft:var(--fx-success-soft);
  --warn:var(--fx-warning);
  --warn-soft:var(--fx-warning-soft);
  --danger:var(--fx-danger);
  --danger-soft:var(--fx-danger-soft);
  --shadow:var(--fx-shadow2)
}

@media(prefers-reduced-motion:reduce){
  :root{
    --fx-fast:0ms;
    --fx-duration:0ms
  }

}


:root{--fx-bg:var(--fx-canvas);--fx-ring:0 0 0 3px var(--fx-focus);--fx-section-surface:var(--fx-surface2);--fx-section-text:var(--fx-text);--fx-table-head:var(--fx-section-surface)}

@media(max-width:1023px),(pointer:coarse){
 :root{--fx-control-height:44px;--fx-control-pad:8px 10px}
}
@media(max-width:767px){
 :root{--fx-page-space:12px;--fx-card-space:12px;--fx-font-title:22px;--fx-section-gap:10px}
}
