/* ==========================================================================
   RecruitmentCV Admin (Partner Portal) - Design System v1: tokens
   The single source of truth for the redesign ("Tokens & components"):
   colour, type, shape, elevation, spacing. Loaded after style.css +
   portal.css on every /partner/* page (layouts/portal.blade.php) and on the
   Partner Login page; components.css builds on these.

   Scope: .wp-theme (the portal <body>) and .w-partner-auth-page (Partner
   Login). The public RecruitmentCV website never gets these values - the
   shared --w-* tokens it uses are only re-pointed inside that scope.
   ========================================================================== */

:root {
  /* Brand */
  /* RecruitmentCV approved green / white / gold palette (same as the public website).
     The token names are historical: "ink" = dark green, "indigo" = primary green. */
  --ink-900: #064E3B;          /* dark green: sidebar, headings, primary tabs */
  --ink-800: #0B7A50;          /* accent green */
  --indigo-700: #087443;       /* primary green: buttons, links, avatars */
  --indigo-800: #064E3B;       /* primary hover */
  --indigo-50: #E8F3EC;        /* light green surface */
  --gold-500: #E2AA22;         /* gold: brand accent, active nav, key CTA */
  --gold-600: #C99112;         /* gold hover */
  --gold-50: #FFF4DA;          /* light gold surfaces */

  /* Surfaces + text */
  --bg-canvas: #F7FAF8;        /* page background */
  --bg-surface: #FFFFFF;       /* cards */
  --bg-subtle: #F8FAF9;        /* table headers, quiet panels */
  --border: #DCE7E0;
  --text: #123B2D;             /* main text */
  --text-heading: #064E3B;
  --text-muted: #64756D;       /* secondary text: labels, captions (4.8:1 on white) */

  /* Status - text / background pairs */
  --info: #064E3B;      --info-bg: #E8F3EC;        /* Processing (dark green - no blue in the theme) */
  --success: #15803D;   --success-bg: #ECFDF3;     /* Deployed, Paid */
  --warning: #9A3412;   --warning-bg: #FFF1E6;     /* Unpaid */
  --attention: #854D0E; --attention-bg: #FEF7DF;   /* Visa pending */
  --critical: #B91C1C;  --critical-bg: #FEF2F2;    /* Cancelled */

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --fs-kpi: 36px;
  --fs-h1: 24px;
  --fs-card-title: 16px;
  --fs-body: 14px;
  --fs-secondary: 13px;
  --fs-label: 11px;

  /* Shape, elevation, spacing */
  --radius-xl: 22px;           /* cards, sections */
  --radius-md: 12px;           /* buttons, inputs, selects */
  --radius-pill: 999px;
  --control-h: 46px;           /* inputs, selects */
  --button-h: 44px;            /* minimum button height */
  --shadow-card: 0 1px 2px rgba(6, 78, 59, 0.04), 0 4px 14px rgba(6, 78, 59, 0.05);
  --shadow-lift: 0 18px 40px rgba(6, 78, 59, 0.12);
  --focus-ring: 0 0 0 3px rgba(8, 116, 67, 0.22);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-7: 36px;
  --page-gutter: 36px;
  --card-pad: 22px;
  --grid-gap: 20px;
}

/* The shared tokens style.css / portal.css components are built on,
   re-pointed to the new palette - portal + Partner Login only. */
.wp-theme,
.w-partner-auth-page {
  --w-primary: var(--indigo-700);
  --w-primary-600: var(--ink-800);
  --w-primary-700: var(--indigo-800);
  --w-primary-50: var(--indigo-50);
  --w-primary-100: var(--border);
  --w-accent: var(--gold-500);
  --w-accent-dark: var(--gold-600);
  --w-success: var(--success);
  --w-success-dark: var(--success);

  --w-ink-900: var(--ink-900);
  --w-ink-800: var(--text);
  --w-ink-700: #33574A;
  --w-ink-600: #4F665C;
  --w-ink-500: var(--text-muted);
  --w-ink-300: #C5D5CC;
  --w-ink-200: var(--border);
  --w-ink-100: var(--indigo-50);
  --w-ink-50: var(--bg-canvas);
  --w-white: var(--bg-surface);

  --w-border: var(--border);
  --w-shadow-sm: var(--shadow-card);
  --w-shadow: 0 2px 6px rgba(6, 78, 59, 0.06), 0 10px 24px rgba(6, 78, 59, 0.06);
  --w-shadow-lg: var(--shadow-lift);

  --w-font-heading: var(--font-display);
  --w-font-body: var(--font-body);

  --w-radius-sm: var(--radius-md);
  --w-radius: var(--radius-xl);
  --w-radius-lg: var(--radius-xl);
}

/* Arabic keeps Tajawal (style.css sets it on [dir="rtl"]; restated here
   because the scope above is closer to the content than <html>). */
[dir="rtl"] .wp-theme,
[dir="rtl"] .w-partner-auth-page,
[dir="rtl"].wp-theme {
  --font-display: 'Tajawal', 'Segoe UI', sans-serif;
  --font-body: 'Tajawal', 'Segoe UI', sans-serif;
  --w-font-heading: 'Tajawal', 'Segoe UI', sans-serif;
  --w-font-body: 'Tajawal', 'Segoe UI', sans-serif;
}
