/* ============================================================
   Dakan — design tokens
   Locked brand direction: dark green (chosen by Ahmed, Dec 6, 2026)
   Sibling of Tabliz (restaurants) — separate product, same family look.
   ============================================================ */

:root {
  /* ---- brand: dark green ---- */
  --brand:        #0d5734;   /* primary — buttons, active tab, hero cards */
  --brand-2:      #17794b;   /* lighter step — gradients, secondary bars */
  --brand-deep:   #05291a;   /* darkest step — gradient end */
  --brand-soft:   #d5e6dc;   /* tint — chips, icon tiles, soft buttons */
  --brand-soft-2: #c6dcd0;   /* tint, one step deeper */
  --brand-tint:   #aecbb9;   /* chart tracks, muted bars */

  /* ---- surfaces ---- */
  --bg:        #e7ede8;      /* page background (tinted, not near-white) */
  --surface:   #ffffff;      /* cards */
  --line:      #d3ded6;      /* card borders */
  --line-2:    #e4ebe6;      /* row separators */

  /* ---- text ---- */
  --text:      #1c2a22;
  --text-2:    #4a5a51;
  --text-3:    #3c4c43;
  --muted:     #78887f;
  --inactive:  #95a49b;

  /* ---- semantic ---- */
  --accent:      #f5842a;    /* credit / آجل / expense bars */
  --accent-soft: #f7e0c6;
  --accent-ink:  #8f4a06;
  --danger:      #7d1009;    /* low stock, discount, returns */
  --danger-soft: #f8cfc8;
  --ok:          #0b6b5c;    /* in stock, profit, paid */
  --ok-soft:     #cde8e2;

  /* ---- radii ---- */
  --r-xs: 10px;
  --r-sm: 12px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* ---- spacing ---- */
  --sp-1: 4px;
  --sp-2: 6px;
  --sp-3: 8px;
  --sp-4: 10px;
  --sp-5: 14px;
  --sp-6: 18px;
  --sp-7: 24px;

  /* ---- elevation ---- */
  --shadow-card:  0 6px 16px rgba(13, 87, 52, .06);
  --shadow-brand: 0 8px 18px rgba(13, 87, 52, .28);

  /* ---- type ---- */
  --font: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --fs-tiny:    10.5px;
  --fs-small:   11.5px;
  --fs-body:    12.5px;
  --fs-base:    13.5px;
  --fs-title:   15px;
  --fs-h1:      17px;
  --fs-display: 30px;

  /* ---- layout ---- */
  --nav-h: 64px;
  --gutter: 14px;
}

/* alternate palette kept for reference / future brands */
[data-palette="red"] {
  --brand:        #8f1d15;
  --brand-2:      #b8342a;
  --brand-deep:   #4c0b07;
  --brand-soft:   #f2dcd7;
  --brand-soft-2: #ead0c9;
  --brand-tint:   #dbb6ae;
  --bg:           #f1e6e3;
  --line:         #e6d3cf;
  --line-2:       #f4e6e2;
  --text:         #2a1a17;
  --text-2:       #5a4744;
  --text-3:       #4a3734;
  --muted:        #8a7673;
  --inactive:     #a89794;
  --ok:           #0b6b3a;
  --danger:       #7d1009;
  --shadow-card:  0 6px 16px rgba(143, 29, 21, .07);
  --shadow-brand: 0 8px 18px rgba(143, 29, 21, .28);
}
