/* QAU Kalam — design system
   Institutional, calm, legible. QAU green as the brand colour, a restrained
   gold accent, neutral surfaces. Light theme by default, dark theme follows
   the OS. Shared by the People app (/) and the Admin Console (/admin/). */

:root {
  --brand-900: #082f24;
  --brand-800: #0b3d2f;
  --brand-700: #0f4c3a;
  --brand-600: #13624a;
  --brand-500: #17795b;
  --brand-100: #e3f1eb;
  --brand-50: #f1f8f5;
  --gold: #c59a3d;
  --gold-soft: #f6ecd6;

  --bg: #f5f7f6;
  --surface: #fcfdfb;
  --surface-2: #f3f6f5;
  --surface-3: #eaf0ed;
  --border: #dde4e1;
  --border-strong: #c7d2cd;
  --text: #16211d;
  --text-2: #3d4b45;
  --text-dim: #66756e;

  --primary: var(--brand-700);
  --primary-hover: var(--brand-600);
  --primary-ink: #ffffff;
  --accent-strong: var(--brand-600);
  --focus: 0 0 0 3px rgba(23, 121, 91, 0.28);

  --success: #1f8a5b;
  --success-bg: #e5f5ed;
  --danger: #c0392b;
  --danger-bg: #fbeceb;
  --warning: #a36b00;
  --warning-bg: #fdf4e2;
  --info-bg: #eaf2fb;

  --cat-academic: #13624a;
  --cat-campus: #5f8f3a;
  --cat-engagement: #8a4f8a;
  --cat-support: #2f6f9f;

  --radius-sm: 9px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(16, 33, 27, 0.04), 0 1px 2px rgba(16, 33, 27, 0.02);
  --shadow: 0 4px 16px -2px rgba(16, 33, 27, 0.06), 0 2px 5px -1px rgba(16, 33, 27, 0.03);
  --shadow-lg: 0 20px 48px -8px rgba(16, 33, 27, 0.12), 0 8px 20px -4px rgba(16, 33, 27, 0.05);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sidebar-w: 248px;
  color-scheme: light;
}

/* Dark: "Emerald Slate", a soft velvety green-black instead of harsh black,
   for late-night hostel study without eye strain. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b120f;
    --surface: #13201b;
    --surface-2: #172620;
    --surface-3: #1d2f28;
    --border: #22362e;
    --border-strong: #2f463c;
    --text: #e2ece7;
    --text-2: #bccbc4;
    --text-dim: #8a9d95;
    --primary: #247d5e;
    --primary-hover: #287f61;
    --accent-strong: #6cc4a1;
    --brand-50: #10201a;
    --brand-100: #173027;
    --gold-soft: #2a2416;
    --success-bg: #11281e;
    --danger-bg: #2c1715;
    --warning-bg: #29210f;
    --info-bg: #122029;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 56px -8px rgba(0, 0, 0, 0.65), 0 8px 20px -4px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
/* Dark chosen by hand (Profile -> Appearance): same rules, no media query. */
  :root[data-theme="dark"] {
    --bg: #0b120f;
    --surface: #13201b;
    --surface-2: #172620;
    --surface-3: #1d2f28;
    --border: #22362e;
    --border-strong: #2f463c;
    --text: #e2ece7;
    --text-2: #bccbc4;
    --text-dim: #8a9d95;
    --primary: #247d5e;
    --primary-hover: #287f61;
    --accent-strong: #6cc4a1;
    --brand-50: #10201a;
    --brand-100: #173027;
    --gold-soft: #2a2416;
    --success-bg: #11281e;
    --danger-bg: #2c1715;
    --warning-bg: #29210f;
    --info-bg: #122029;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.45), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 56px -8px rgba(0, 0, 0, 0.65), 0 8px 20px -4px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }




/* Semantic categories shared by both applications. */
:root {
 --secondary: var(--gold); --bg-primary: var(--bg); --bg-secondary: var(--surface-2);
 --bg-elevated: var(--surface); --bg-glass: color-mix(in srgb, var(--surface) 88%, transparent);
 --text-primary: var(--text); --text-secondary: var(--text-2); --text-muted: var(--text-dim); --text-inverted: #fff;
 --highlight: var(--accent-strong); --pro-start: #5b35a5; --pro-end: #7b4db8; --pro-ink: #fff;
 --verified: #087d63; --photo-overlay: rgba(8, 24, 19, .79); --photo-overlay-soft: rgba(8, 24, 19, .4);
 --reaction-start: #ff8fa3; --reaction-mid: #ff4d6d; --reaction-end: #c9184a;
}

/* Legacy palette aliases: new components use semantic tokens above. */
:root {
 --tone-1: #a93226;
 --tone-2: rgba(192, 57, 43, 0.3);
 --tone-3: rgba(31, 138, 91, 0.3);
 --tone-4: rgba(163, 107, 0, 0.3);
 --tone-5: rgba(47, 111, 159, 0.3);
 --tone-6: rgba(197, 154, 61, 0.22);
 --tone-7: rgba(255, 255, 255, 0.05);
 --tone-8: rgba(255, 255, 255, 0.12);
 --tone-9: rgba(255, 255, 255, 0.25);
 --tone-10: rgba(255, 255, 255, 0.8);
 --tone-11: rgba(255, 255, 255, 0.88);
 --tone-12: rgba(255, 255, 255, 0.1);
 --tone-13: rgba(0, 0, 0, 0.04);
 --tone-14: rgba(255, 255, 255, 0.06);
 --tone-15: #0b1210;
 --tone-16: rgba(255, 255, 255, 0.7);
 --tone-17: rgba(8, 18, 14, 0.45);
 --tone-18: #3ddc97;
 --tone-19: #f5b041;
 --tone-20: rgba(0, 0, 0, 0.55);
 --tone-21: #ff3b30;
 --tone-22: #cfe3da;
 --tone-23: #dbe9e3;
 --tone-24: rgba(255, 255, 255, 0.45);
 --tone-25: #cfe0d8;
 --tone-26: rgba(255, 255, 255, 0.08);
 --tone-27: rgba(255, 255, 255, 0.15);
 --tone-28: #1c1606;
 --tone-29: rgba(255, 255, 255, 0.2);
 --tone-30: rgba(255, 255, 255, 0.6);
 --tone-31: rgba(0, 0, 0, 0.03);
 --tone-32: rgba(8, 20, 16, 0.55);
 --tone-33: rgba(11, 61, 47, 0.92);
 --tone-34: rgba(0, 0, 0, 0.18);
 --tone-35: rgba(11, 18, 15, 0.94);
 --tone-36: rgba(255, 255, 255, 0.14);
 --tone-37: rgba(0, 0, 0, 0.6);
 --tone-38: #d63d5c;
 --tone-39: #feed;
 --tone-40: #d8ab4c;
 --tone-41: #8a969c;
 --tone-42: #34b7f1;
 --tone-43: #dff4e9;
 --tone-44: #eef3f0;
 --tone-45: #134536;
 --tone-46: #1c2723;
 --tone-47: #0f1714;
 --tone-48: #93a39c;
 --tone-49: #53bdeb;
 --tone-50: rgba(19, 98, 74, 0.06);
 --tone-51: rgba(0, 0, 0, 0.12);
 --tone-52: rgba(0,0,0,0.18);
 --tone-53: rgba(0,0,0,0.35);
 --tone-54: rgba(255,255,255,0.12);
 --tone-55: rgba(0,0,0,0.45);
 --tone-56: rgba(0,0,0,0.04);
 --tone-57: rgba(19, 98, 74, 0.08);
 --tone-58: rgba(0, 0, 0, 0.4);
 --tone-59: rgba(0, 0, 0, 0.06);
 --tone-60: rgba(0, 0, 0, 0.1);
 --tone-61: rgba(197, 154, 61, 0.35);
 --tone-62: rgba(240, 190, 90, 0.4);
 --tone-63: #2f6b3a;
 --tone-64: #163f2a;
 --tone-65: rgba(255, 255, 255, 0.82);
 --tone-66: #7b8a83;
 --tone-67: rgba(255, 255, 255, 0.22);
 --tone-68: rgba(255, 255, 255, 0.85);
 --tone-69: rgba(255, 255, 255, 0.26);
 --tone-70: rgba(4, 10, 8, 0.97);
 --tone-71: rgba(0, 0, 0, 0.5);
 --tone-72: rgba(197, 154, 61, 0.28);
 --tone-73: rgba(6, 22, 17, 0.93);
 --tone-74: rgba(197, 154, 61, 0.55);
 --tone-75: rgba(0, 0, 0, 0.45);
 --tone-76: rgba(255, 255, 255, 0.28);
 --tone-77: rgba(31, 138, 91, 0.22);
 --tone-78: #5ee6a8;
 --tone-79: rgba(94, 230, 168, 0.4);
 --tone-80: rgba(255, 255, 255, 0.18);
 --tone-81: #d3aa50;
 --tone-82: rgba(197, 154, 61, 0.3);
 --tone-83: rgba(0, 0, 0, 0.35);
 --tone-84: #f4e6c4;
 --tone-85: rgba(16, 33, 27, 0.07);
 --tone-86: rgba(0, 0, 0, 0.25);
 --tone-87: rgba(120, 170, 220, 0.3);
 --tone-88: #16495f;
 --tone-89: #0c2b3a;
 --tone-90: rgba(255, 255, 255, 0.24);
 --tone-91: rgba(197, 154, 61, 0.5);
 --tone-92: #000;
 --tone-93: rgba(214, 61, 92, 0.55);
 --tone-94: rgba(255, 255, 255, 0.72);
 --tone-95: rgba(15, 76, 58, 0.85);
 --tone-96: rgba(255, 255, 255, 0.66);
 --tone-97: rgba(201, 24, 74, 0.5);
 --tone-98: #e0434f;
 --tone-99: rgba(245, 196, 92, 0.45);
 --tone-100: #f6dca0;
 --tone-101: rgba(255, 255, 255, 0.75);
 --tone-102: rgba(255, 255, 255, 0.95);
 --tone-103: rgba(255, 255, 255, 0.3);
 --tone-104: rgba(255, 255, 255, 0.9);
 --tone-105: #ffe2a0;
 --tone-106: #2fbf71;
 --tone-107: #5b6b64;
 --tone-108: #e3effd;
 --tone-109: #1f5fae;
 --tone-110: #f3e8fd;
 --tone-111: #6d3fa8;
 --tone-112: #fdf0d5;
 --tone-113: #93620a;
 --tone-114: #dff5e9;
 --tone-115: #1b7a4b;
 --tone-116: #16293f;
 --tone-117: #8fbcf2;
 --tone-118: #2a1d3a;
 --tone-119: #c9a6f2;
 --tone-120: #33280f;
 --tone-121: #f0c56a;
 --tone-122: #12301f;
 --tone-123: #7fd9a8;
 --tone-124: #ffe7a3;
 --tone-125: #2a0f4a;
 --tone-126: #4b1d7a;
 --tone-127: #6d2fa6;
 --tone-128: #d4af37;
 --tone-129: rgba(75, 29, 122, 0.35);
 --tone-130: #f5c542;
 --tone-131: rgba(245, 197, 66, 0.65);
 --tone-132: rgba(255, 238, 180, 0.55);
 --tone-133: rgba(109, 47, 166, 0.6);
 --tone-134: rgba(197, 154, 61, 0.4);
 --tone-135: #fff1d6;
 --tone-136: #f0a830;
 --tone-137: rgba(240, 168, 48, 0.45);
 --tone-138: rgba(240, 168, 48, 0);
 --tone-139: #33250c;
 --tone-140: rgba(47, 191, 113, 0.6);
 --tone-141: rgba(47, 191, 113, 0);
 --tone-142: #d0433b;
 --tone-143: #1f9a5a;
 --tone-144: #5b4a1f;
 --tone-145: #fff4d6;
 --tone-146: rgba(0, 0, 0, 0.3);
 --tone-147: rgba(109, 47, 166, 0.55);
 --tone-148: rgba(16, 6, 30, 0.82);
 --tone-149: rgba(255, 231, 163, 0.35);
 --tone-150: rgba(212, 175, 55, 0.12);
 --tone-151: rgba(245, 197, 66, 0.45);
 --tone-152: rgba(245, 197, 66, 0.7);
 --tone-153: rgba(212, 175, 55, 0.4);
 --tone-154: rgba(197, 154, 61, 0.18);
 --tone-155: rgba(163, 107, 0, 0.45);
 --tone-156: rgba(8, 20, 16, 0.45);
 --tone-157: rgba(192, 57, 43, 0.35);
 --tone-158: rgba(0, 0, 0, 0.05);
 --tone-159: rgba(109, 47, 166, 0.08);
 --tone-160: rgba(212, 175, 55, 0.1);
}

:root {
 --script-tone-1: #d9443a;
 --script-tone-2: #2b6cd4;
 --script-tone-3: #d9772b;
 --script-tone-4: #7a5cc4;
}
