/* StackHR theme: design tokens and base styles only. Components live in their own files
   (buttons.css, forms.css, cards.css, …). Change a colour here and every file follows.

   Usage rules:
   - Primary (midnight navy): the sidebar and main buttons (also links).
   - Background: a cool, soft white, so tables and forms are easy to read.
   - Accent (electric teal): key actions, highlights and progress, not everything. Field focus is navy.
   - Font: Inter, falling back to system fonts. */
:root {
  /* Brand: Midnight Navy and Electric Teal */
  --lb-primary: #0B2447;           /* midnight navy: sidebar, main buttons, links */
  --lb-primary-hover: #081B38;
  --lb-primary-active: #06152B;
  --lb-primary-rgb: 11, 36, 71;
  --lb-primary-soft: #E6EDF8;      /* light navy tint: avatar initials, selected states */
  --lb-navy-lift: #15397A;         /* the lighter end of navy gradients */

  --lb-accent: #09796B;            /* the teal: progress bars, icons, borders, highlights (same green as the setup steps) */
  --lb-accent-strong: #09796B;     /* fills with white text (badges, accent buttons): 5:1 contrast */
  --lb-accent-hover: #076459;
  --lb-accent-rgb: 17, 191, 174;
  --lb-accent-soft: #E3F8F5;       /* alert and soft badge backgrounds */
  --lb-accent-ink: #055248;        /* accent-coloured text on light backgrounds */
  --lb-accent-light: #46E3CF;      /* teal on navy (sidebar icons, current page): 9:1 contrast on the navy */

  /* Neutrals: cool, so the navy and teal sit naturally on them */
  --lb-bg: #F3F6FB;
  --lb-surface: #FFFFFF;
  --lb-ink: #0E1A2E;
  --lb-muted: #566684;
  --lb-border: #D9E2EE;
  --lb-border-soft: #E8EEF6;
  --lb-hover: #EDF2FA;             /* neutral hover and current-page background */
  --lb-row-hover: #F6F9FD;         /* table and list rows */
  --lb-head: #F7F9FD;              /* table header background */
  --lb-data: var(--lb-primary);      /* chart bars and timeline dots: the sidebar navy */

  /* Gradients: main buttons, key actions, the sidebar and the signed-out pages */
  --lb-gradient: linear-gradient(135deg, var(--lb-navy-lift) 0%, var(--lb-primary) 100%);
  --lb-gradient-accent: linear-gradient(180deg, #0C8F7F 0%, var(--lb-accent-strong) 100%); /* the same teal, a gentle top-to-bottom shade */

  /* Soft status tints (badges, stat icons): same meanings as the solid colours */
  --lb-danger: #B42318;
  --lb-danger-soft: #FDECEA;
  --lb-warning-ink: #7A5200;
  --lb-warning-soft: #FDF1D6;
  --lb-neutral-soft: #EEF1F5;

  /* Shape */
  --lb-input-pad-y: 0.4rem;         /* every input, select and textarea: same padding, text size and shape */
  --lb-input-pad-x: 0.75rem;
  --lb-input-font-size: 0.95rem;
  --lb-btn-pad-y: 0.5rem;           /* every button: same padding, text size, minimum width and pill shape */
  --lb-btn-pad-x: 1.1rem;
  --lb-btn-font-size: 0.875rem;
  --lb-btn-min-width: 6rem;
  --lb-content-max: 1800px;         /* page content is centred, at most this wide, with space on both sides */
  --lb-content-gutter: clamp(16px, 2.2vw, 36px);
  --lb-skeleton-base: #E8EDF5;      /* loading placeholders: resting colour and the moving shine */
  --lb-skeleton-shine: #F5F8FC;
  --lb-radius: 12px;               /* inputs, buttons, small panels */
  --lb-radius-lg: 18px;            /* cards and large panels */
  --lb-shadow: 0 1px 2px rgba(var(--lb-primary-rgb), 0.05), 0 6px 18px rgba(var(--lb-primary-rgb), 0.06);
  /* Hover glow for cards: same teal edge, but a wider soft halo around it (UI-74). */
  --lb-glow: 0 0 0 3px rgba(var(--lb-accent-rgb), 0.16), 0 0 26px 6px rgba(var(--lb-accent-rgb), 0.24), 0 18px 44px rgba(var(--lb-primary-rgb), 0.16);
  --lb-shadow-lg: 0 18px 44px rgba(var(--lb-primary-rgb), 0.16);
  --lb-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --lb-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Bootstrap, mapped to the tokens above */
  --bs-primary: var(--lb-primary);
  --bs-primary-rgb: var(--lb-primary-rgb);
  --bs-success: var(--lb-accent-strong);
  --bs-success-rgb: 9, 121, 107;
  --bs-success-bg-subtle: var(--lb-accent-soft);
  --bs-success-border-subtle: #B5EBE3;
  --bs-success-text-emphasis: var(--lb-accent-ink);
  --bs-link-color: var(--lb-primary);
  --bs-link-color-rgb: var(--lb-primary-rgb);
  --bs-link-hover-color: var(--lb-primary-active);
  --bs-link-hover-color-rgb: 6, 21, 43;
  --bs-body-font-family: var(--lb-font);
  --bs-body-font-size: 14px;
  --bs-body-color: var(--lb-ink);
  --bs-body-bg: var(--lb-bg);
  --bs-border-color: var(--lb-border);
  --bs-border-radius: var(--lb-radius);
  --bs-secondary-color: var(--lb-muted);
  --bs-emphasis-color: var(--lb-ink);
  --bs-focus-ring-color: rgba(var(--lb-primary-rgb), 0.2);
}

body {
  min-height: 100vh;
  /* The network picture behind the whole app, under a light wash so text and cards stay easy to read (UI-72). */
  background: linear-gradient(rgba(243, 246, 251, 0.84), rgba(243, 246, 251, 0.9)), url("/assets/Backround-890af905.jpg") center / cover fixed no-repeat, var(--lb-bg);
  font-feature-settings: "cv11", "ss01"; /* Inter: single-storey a, clearer digits */
  color: var(--lb-ink);
  font-family: var(--lb-font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--lb-ink);
}

/* Page titles read larger and tighter than Bootstrap's h4. */
.app-content h1.h4 { font-size: 1.625rem; letter-spacing: -0.025em; }

/* Numbers line up in columns and stat cards. */
.stat-value, .table td, .badge { font-variant-numeric: tabular-nums; }

a { text-underline-offset: 3px; }

::selection { background: rgba(var(--lb-accent-rgb), 0.28); }

.text-muted { color: var(--lb-muted) !important; }

/* The one-line description under a page's main heading: the heading's own colour, a lighter shade. */
.page-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: color-mix(in srgb, var(--lb-ink) 58%, #fff);
}

/* Anything that animates (setup steps, toasts) stays still for people who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
