/* ==========================================================================
   1Card brand tokens
   Shared with 1CardAdminPanel (src/assets/css/app.css, section 2) so the
   website and the admin console read as one product. Keep the colour values
   in sync between the two files.
   ========================================================================== */

/* Fonts ------------------------------------------------------------------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-700.woff2") format("woff2"); }

/* Bangla. Plex has no Bengali glyphs, not even the taka sign, so:
   - a 4 KB file holds only "৳" and loads on any page that shows an amount;
   - the full Bengali font (108 KB) loads only when Bangla text appears (phase 2). */
@font-face { font-family: "Noto Sans Bengali"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-bengali-taka.woff2") format("woff2"); unicode-range: U+09F3; }
@font-face { font-family: "Noto Sans Bengali"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../fonts/noto-sans-bengali-var.woff2") format("woff2"); unicode-range: U+0951-0952, U+0964-0965, U+0980-09F2, U+09F4-09FE, U+200C-200D, U+25CC; }

/* Light ------------------------------------------------------------------- */
:root,
[data-bs-theme="light"] {
  color-scheme: light;

  --font-sans: "IBM Plex Sans", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Brand, from the 1Card logo */
  --brand-ink: #141b4d;          /* deep navy of the card swoosh */
  --brand: #1f4fbf;              /* royal blue: primary actions, links */
  --brand-hover: #1a43a3;
  --brand-soft: #e9eefc;
  --brand-soft-2: #d6e0fa;
  --band: #141b4d;               /* navy feature bands */
  --band-2: #1b2566;
  --band-text: #ffffff;
  --band-text-2: rgba(255, 255, 255, .76);

  /* Mosaic tiles: the coloured blocks of the logo's "1".
     Each module family owns one tile colour across the site and the admin. */
  --tile-1: #2a78d6;   /* blue   — cards & identity */
  --tile-2: #eb6834;   /* orange — campus services (canteen, print, gym) */
  --tile-3: #1baf7a;   /* aqua   — payments & wallet */
  --tile-4: #eda100;   /* amber  — access & mobility (gates, bus, parking) */
  --tile-0: #141b4d;   /* navy   — back office */
  --tile-1-soft: #e6f0fb;
  --tile-2-soft: #fdece4;
  --tile-3-soft: #e1f5ed;
  --tile-4-soft: #fdf3dc;
  --tile-0-soft: #e7e9f3;
  --tile-1-ink: #1f5fb8;   /* icon/text colour on the soft tile backgrounds */
  --tile-2-ink: #b4441a;
  --tile-3-ink: #0b7550;
  --tile-4-ink: #865900;
  --tile-0-ink: #141b4d;
  --on-tile: #141b4d;  /* text on aqua, orange and amber tiles */
  --flag: #2b2f7f;     /* the navy flag of the logo's "1" */

  /* Surfaces & ink */
  --page: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef1f7;
  --border: #e2e6ef;
  --border-strong: #cdd3e1;
  --text: #151a30;
  --text-2: #4b5371;
  --text-3: #6b7390;
  --focus: 0 0 0 3px rgba(31, 79, 191, .32);

  /* Status, reserved for state */
  --good: #0f7a35;  --good-bg: #e5f5ea;
  --warn: #8a5800;  --warn-bg: #fff3d4;
  --bad: #b42323;   --bad-bg: #fdeaea;
  --info: #1f4fbf;  --info-bg: #e9eefc;

  /* Shape */
  --r-tile: 4px;   /* mosaic tiles */
  --r-sm: 6px;     /* inputs, chips */
  --r-btn: 8px;    /* buttons */
  --r-md: 10px;    /* panels, menus */
  --r-lg: 16px;    /* hero surfaces, screenshots */
  --shadow-pop: 0 12px 32px -8px rgba(20, 27, 77, .18), 0 2px 6px rgba(20, 27, 77, .06);
  --shadow-lift: 0 30px 60px -24px rgba(20, 27, 77, .35), 0 8px 18px -10px rgba(20, 27, 77, .18);

  /* Bootstrap bridge */
  --bs-body-font-family: var(--font-sans);
  --bs-body-bg: var(--surface);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--text-2);
  --bs-tertiary-color: var(--text-3);
  --bs-emphasis-color: var(--text);
  --bs-border-color: var(--border);
  --bs-border-radius: var(--r-sm);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 31, 79, 191;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 31, 79, 191;
  --bs-link-hover-color: var(--brand-hover);
  --bs-link-hover-color-rgb: 26, 67, 163;
  --bs-heading-color: var(--text);
  --bs-focus-ring-color: rgba(31, 79, 191, .32);
}

/* Dark -------------------------------------------------------------------- */
[data-bs-theme="dark"] {
  color-scheme: dark;

  --brand-ink: #c7d3ff;
  --brand: #4d7ff0;
  --brand-hover: #6a94f3;
  --brand-soft: #1b2654;
  --brand-soft-2: #24326b;
  --band: #151d4c;
  --band-2: #1d2862;

  --tile-1: #3987e5;
  --tile-2: #e5703f;
  --tile-3: #23b383;
  --tile-4: #e0a20d;
  --tile-0: #2a3470;
  --tile-1-soft: rgba(57, 135, 229, .16);
  --tile-2-soft: rgba(229, 112, 63, .16);
  --tile-3-soft: rgba(35, 179, 131, .16);
  --tile-4-soft: rgba(224, 162, 13, .16);
  --tile-0-soft: rgba(140, 160, 240, .14);
  --tile-1-ink: #8cb8f2;
  --tile-2-ink: #f29b78;
  --tile-3-ink: #5fd3a5;
  --tile-4-ink: #f5c451;
  --tile-0-ink: #b9c4f5;
  --on-tile: #0b0f26;
  --flag: #3b46b0;

  --page: #0b0f21;
  --surface: #10162f;
  --surface-2: #141b39;
  --surface-3: #1a2246;
  --border: #252e56;
  --border-strong: #333d6b;
  --text: #e7eaf7;
  --text-2: #a8afcc;
  --text-3: #8a91b0;
  --focus: 0 0 0 3px rgba(77, 127, 240, .45);

  --good: #4cd17a;  --good-bg: rgba(12, 163, 12, .16);
  --warn: #f5c451;  --warn-bg: rgba(250, 178, 25, .14);
  --bad: #f07a7a;   --bad-bg: rgba(208, 59, 59, .18);
  --info: #8cacf7;  --info-bg: rgba(77, 127, 240, .18);

  --shadow-pop: 0 12px 32px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
  --shadow-lift: 0 30px 60px -24px rgba(0, 0, 0, .7), 0 8px 18px -10px rgba(0, 0, 0, .5);

  --bs-body-bg: var(--surface);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--text-2);
  --bs-tertiary-color: var(--text-3);
  --bs-emphasis-color: var(--text);
  --bs-border-color: var(--border);
  --bs-primary-rgb: 77, 127, 240;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 77, 127, 240;
  --bs-link-hover-color: var(--brand-hover);
  --bs-link-hover-color-rgb: 106, 148, 243;
  --bs-heading-color: var(--text);
}
