/* =====================================================================
   عيادتك PRO — Design System (tokens, typography, light/dark themes)
   Loaded after all legacy stylesheets; overrides only, no markup changes.
   ===================================================================== */

:root{
  /* Brand */
  --pro-green-50:#effaf0;
  --pro-green-100:#d9f2db;
  --pro-green-200:#b3e4b8;
  --pro-green-400:#3fae4f;
  --pro-green-500:#1d8a2e;
  --pro-green-600:#0d631b;
  --pro-green-700:#0a4f16;
  --pro-green-800:#083d12;
  --pro-green-900:#062b0d;
  --pro-orange-400:#ff9d3d;
  --pro-orange-500:#fc820c;
  --pro-orange-600:#e06d00;

  --pro-grad-brand:linear-gradient(135deg,#0d631b 0%,#1d8a2e 55%,#3fae4f 100%);
  --pro-grad-accent:linear-gradient(135deg,#ff9d3d 0%,#fc820c 60%,#e06d00 100%);
  --pro-grad-mesh:
    radial-gradient(at 12% 18%,rgba(63,174,79,.18) 0,transparent 48%),
    radial-gradient(at 88% 8%,rgba(252,130,12,.14) 0,transparent 45%),
    radial-gradient(at 70% 92%,rgba(13,99,27,.12) 0,transparent 50%),
    radial-gradient(at 5% 95%,rgba(255,157,61,.10) 0,transparent 40%);

  /* Surfaces */
  --pro-bg:#f6f8f5;
  --pro-surface:#ffffff;
  --pro-surface-2:#f9fbf8;
  --pro-surface-3:#f1f5ef;
  --pro-glass:rgba(255,255,255,.72);
  --pro-glass-strong:rgba(255,255,255,.88);
  --pro-glass-border:rgba(255,255,255,.65);
  --pro-line:#e3ebe0;
  --pro-line-strong:#cfdccb;

  /* Text */
  --pro-text:#14201a;
  --pro-text-2:#46544a;
  --pro-text-3:#738077;

  /* Feedback */
  --pro-success:#16a34a;
  --pro-danger:#dc2626;
  --pro-warning:#f59e0b;
  --pro-info:#2563eb;

  /* Radius */
  --pro-r-xs:8px;
  --pro-r-sm:12px;
  --pro-r-md:16px;
  --pro-r-lg:22px;
  --pro-r-xl:28px;
  --pro-r-full:999px;

  /* Elevation */
  --pro-shadow-xs:0 1px 2px rgba(16,40,22,.05);
  --pro-shadow-sm:0 2px 8px rgba(16,40,22,.06),0 1px 2px rgba(16,40,22,.04);
  --pro-shadow-md:0 10px 30px -8px rgba(16,40,22,.12),0 4px 10px -4px rgba(16,40,22,.06);
  --pro-shadow-lg:0 24px 60px -16px rgba(16,40,22,.22),0 8px 20px -8px rgba(16,40,22,.08);
  --pro-shadow-glow:0 10px 30px -6px rgba(13,99,27,.35);
  --pro-shadow-glow-accent:0 12px 30px -8px rgba(252,130,12,.55);
  --pro-ring:0 0 0 4px rgba(29,138,46,.18);

  /* Motion */
  --pro-ease:cubic-bezier(.22,1,.36,1);
  --pro-ease-spring:cubic-bezier(.34,1.56,.64,1);
  --pro-dur-fast:.16s;
  --pro-dur:.28s;
  --pro-dur-slow:.6s;

  /* Typography */
  --pro-font:'IBM Plex Sans Arabic','Segoe UI',Tahoma,system-ui,sans-serif;
  --pro-fs-xs:.75rem;
  --pro-fs-sm:.8125rem;
  --pro-fs-md:.9375rem;
  --pro-fs-lg:1.0625rem;
  --pro-fs-xl:1.375rem;
  --pro-fs-2xl:clamp(1.6rem,2.6vw,2.15rem);
  --pro-fs-3xl:clamp(2rem,4.2vw,3.25rem);

  color-scheme:light;
}

/* ------------------------- DARK THEME ------------------------- */
html[data-theme="dark"]{
  color-scheme:dark;

  --pro-bg:#0b1310;
  --pro-surface:#111c17;
  --pro-surface-2:#15221c;
  --pro-surface-3:#1a2a22;
  --pro-glass:rgba(17,28,23,.72);
  --pro-glass-strong:rgba(17,28,23,.9);
  --pro-glass-border:rgba(255,255,255,.07);
  --pro-line:#22342a;
  --pro-line-strong:#2e4537;

  --pro-text:#e6efe8;
  --pro-text-2:#a9b9ad;
  --pro-text-3:#7d8f82;

  --pro-shadow-sm:0 2px 8px rgba(0,0,0,.35);
  --pro-shadow-md:0 10px 30px -8px rgba(0,0,0,.55);
  --pro-shadow-lg:0 24px 60px -16px rgba(0,0,0,.7);
  --pro-ring:0 0 0 4px rgba(63,174,79,.28);

  --pro-grad-mesh:
    radial-gradient(at 12% 18%,rgba(63,174,79,.16) 0,transparent 48%),
    radial-gradient(at 88% 8%,rgba(252,130,12,.10) 0,transparent 45%),
    radial-gradient(at 70% 92%,rgba(29,138,46,.12) 0,transparent 50%);

  /* Re-map the legacy material tokens so all old CSS follows the theme */
  --color-primary:#4cc35e;
  --color-primary-container:#1d8a2e;
  --color-on-primary-container:#cbffc2;
  --color-secondary:#ffad5c;
  --color-on-secondary-container:#2b1300;
  --color-background:#0b1310;
  --color-on-background:#e6efe8;
  --color-surface:#111c17;
  --color-on-surface:#e6efe8;
  --color-on-surface-variant:#a9b9ad;
  --color-surface-container:#1a2a22;
  --color-surface-container-low:#15221c;
  --color-surface-container-lowest:#111c17;
  --color-surface-container-high:#22342a;
  --color-surface-container-highest:#2a3e33;
  --color-outline-variant:#2e4537;
  --color-outline:#5f7566;
  --ayadatak-line:#22342a;
  --ayadatak-soft:#15221c;
}

/* --------------------------- BASE --------------------------- */
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
  font-family:var(--pro-font);
  background:var(--pro-bg)!important;
  color:var(--pro-text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-feature-settings:"kern" 1;
}
html.pro-theme-anim body,
html.pro-theme-anim body *{
  transition:background-color .35s var(--pro-ease),border-color .35s var(--pro-ease),color .25s var(--pro-ease),fill .25s,box-shadow .35s!important;
}
::selection{background:rgba(29,138,46,.22);color:inherit;}
h1,h2,h3,h4{letter-spacing:-.01em;}
img{max-width:100%;}

/* Scrollbar */
*{scrollbar-width:thin;scrollbar-color:var(--pro-line-strong) transparent;}
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:var(--pro-line-strong);border-radius:10px;border:3px solid var(--pro-bg);}
::-webkit-scrollbar-thumb:hover{background:var(--pro-text-3);}

/* Focus ring */
:where(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:none!important;
  box-shadow:var(--pro-ring)!important;
  border-radius:var(--pro-r-sm);
}

/* Utility */
.pro-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
.pro-gradient-text{
  background:var(--pro-grad-brand);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}

