/* ==========================================================================
   LLA Design System — Design Tokens
   Colors sampled directly from the approved LLA dashboard mockups.
   ========================================================================== */

:root {
  /* Brand navy (Admin/Teacher sidebar, headings, primary dark surface) */
  --navy-900: #002E6D;
  --navy-800: #073B85;
  --navy-700: #0B4A9E;

  /* Primary action blue (buttons, links, active icons) */
  --blue-700: #0B5ED9;
  --blue-600: #0F73F8;
  --blue-100: #B0D7FD;
  --blue-50: #E3F2FD;

  /* Portal accents */
  --amber-600: #D9971F;
  --amber-500: #EBAE39;
  --amber-100: #FCEFD6;

  --purple-600: #7C3AED;
  --purple-500: #9B64F8;
  --purple-100: #EEE5FE;

  --green-700: #067A4E;
  --green-600: #0E9F63;
  --green-100: #DCF5EA;

  --red-50: #FEF2F2;
  --red-600: #DC2626;
  --red-500: #E4536B;
  --red-100: #FCE4EA;

  /* Portal-specific sidebar accents (set per-portal via [data-portal]).
     Admin black, Teacher dark blue, Student gold, Parent light blue. */
  --admin-black: #14161A;
  --admin-black-alt: #1F2227;
  --teacher-navy: #002E6D;
  --teacher-navy-alt: #063B82;
  --student-gold: #E8B33C;
  --student-gold-alt: #D9A32C;
  --parent-sky: #CBE4FA;
  --parent-sky-alt: #B4D7F6;
  --student-blue: #0475D3;
  --student-blue-dark: #0164C4;
  --staff-blue-50: #D3EAFE;
  --parent-cream: #F8E3B0;
  --parent-cream-dark: #F3D488;

  /* Neutrals */
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;

  /* Semantic */
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-success: var(--green-600);
  --color-warning: var(--amber-500);
  --color-danger: var(--red-600);
  --color-info: var(--blue-600);

  --text-heading: var(--navy-900);
  --text-body: var(--gray-700);
  --text-muted: var(--gray-500);

  --surface-page: #F5F8FC;
  --surface-card: var(--white);
  --border-default: var(--gray-200);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Radius & shadow */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 28px rgba(16, 24, 40, 0.12);

  /* Layout */
  --sidebar-width: 264px;
  --sidebar-width-collapsed: 76px;
  --topbar-height: 72px;

  /* Default (Admin/Teacher) portal accent.
     Hover = pale blue fill, Active = solid blue fill — per mockup 1, panel 3. */
  --sidebar-bg: var(--navy-900);
  --sidebar-bg-alt: var(--navy-800);
  --sidebar-text: rgba(255, 255, 255, 0.85);
  --sidebar-text-muted: rgba(255, 255, 255, 0.55);
  --sidebar-hover-bg: var(--blue-50);
  --sidebar-hover-text: var(--navy-900);
  --sidebar-active-bg: var(--blue-600);
  --sidebar-active-text: var(--white);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --portal-badge-bg: var(--amber-500);
  --portal-badge-text: var(--navy-900);
}

/* Admin portal: black sidebar (item 53). Admin and Teacher used to share the
   :root default, so each now states its own colour rather than inheriting. */
[data-portal="admin"] {
  --sidebar-bg: var(--admin-black);
  --sidebar-bg-alt: var(--admin-black-alt);
  --sidebar-text: rgba(255, 255, 255, 0.86);
  --sidebar-text-muted: rgba(255, 255, 255, 0.52);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.10);
  --sidebar-hover-text: var(--white);
  --sidebar-active-bg: var(--amber-500);
  --sidebar-active-text: var(--admin-black);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --portal-badge-bg: var(--amber-500);
  --portal-badge-text: var(--admin-black);
}

/* Teacher portal: dark blue sidebar (item 53) */
[data-portal="teacher"] {
  --sidebar-bg: var(--teacher-navy);
  --sidebar-bg-alt: var(--teacher-navy-alt);
  --sidebar-text: rgba(255, 255, 255, 0.85);
  --sidebar-text-muted: rgba(255, 255, 255, 0.55);
  --sidebar-hover-bg: rgba(255, 255, 255, 0.12);
  --sidebar-hover-text: var(--white);
  --sidebar-active-bg: var(--blue-600);
  --sidebar-active-text: var(--white);
  --sidebar-border: rgba(255, 255, 255, 0.10);
  --portal-badge-bg: var(--amber-500);
  --portal-badge-text: var(--navy-900);
}

/* Staff portal: light sky-blue sidebar */
[data-portal="staff"] {
  --sidebar-bg: var(--staff-blue-50);
  --sidebar-bg-alt: #C3E0FD;
  --sidebar-text: var(--navy-900);
  --sidebar-text-muted: var(--gray-600);
  --sidebar-hover-bg: rgba(0, 46, 109, 0.08);
  --sidebar-hover-text: var(--navy-900);
  --sidebar-active-bg: var(--navy-900);
  --sidebar-active-text: var(--white);
  --sidebar-border: rgba(0, 46, 109, 0.1);
  --portal-badge-bg: var(--amber-500);
  --portal-badge-text: var(--navy-900);
}

/* Student portal: gold sidebar (item 53) */
[data-portal="student"] {
  --sidebar-bg: var(--student-gold);
  --sidebar-bg-alt: var(--student-gold-alt);
  --sidebar-text: var(--navy-900);
  --sidebar-text-muted: #6B4E0F;
  --sidebar-hover-bg: rgba(0, 46, 109, 0.10);
  --sidebar-hover-text: var(--navy-900);
  --sidebar-active-bg: var(--navy-900);
  --sidebar-active-text: var(--white);
  --sidebar-border: rgba(0, 46, 109, 0.16);
  --portal-badge-bg: var(--navy-900);
  --portal-badge-text: var(--white);
}

/* Parent portal: light blue sidebar (item 53) */
[data-portal="parent"] {
  --sidebar-bg: var(--parent-sky);
  --sidebar-bg-alt: var(--parent-sky-alt);
  --sidebar-text: var(--navy-900);
  --sidebar-text-muted: #41607F;
  --sidebar-hover-bg: rgba(0, 46, 109, 0.10);
  --sidebar-hover-text: var(--navy-900);
  --sidebar-active-bg: var(--navy-900);
  --sidebar-active-text: var(--white);
  --sidebar-border: rgba(0, 46, 109, 0.14);
  --portal-badge-bg: var(--navy-900);
  --portal-badge-text: var(--white);
}
