/* ═══════════════════════════════════════════════════════
   GESTAERO THEME — corporate reskin layer
   Loaded LAST (after all inline/base styles). Re-defines
   design tokens and restyles app chrome for the GestAero
   brand: deep navy blues + technical accents. Remove this
   file to restore the original "cockpit" theme.
═══════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────── */
:root {
  /* Ops Console graphite scale (dark) — see Design Options.dc.html 2a */
  --bg: #171a20;
  --s1: #1e232b;
  --s2: #262c36;
  --s3: #2c3340;
  --s4: #333b49;
  --border: rgba(255, 255, 255, 0.18);
  --b2: rgba(255, 255, 255, 0.28);
  --b3: rgba(255, 255, 255, 0.38);
  --border-w: 2px;
  --text: #eef0f3;
  --t2: #a9b0ba;
  --t3: #7d8894;
  --t4: #4d5560;

  /* GestAero action colour (UI chrome: nav, focus, primary) */
  --accent: #4d7cfb;
  --accent-d: rgba(77, 124, 251, 0.13);
  --accent-strong: #3763e0;

  /* System colours — desaturated, professional */
  --col-af: #4fc785;
  --col-af-d: rgba(79, 199, 133, 0.11);
  --col-e1: #5c8ff5;
  --col-e1-d: rgba(92, 143, 245, 0.11);
  --col-e2: #45bdc7;
  --col-e2-d: rgba(69, 189, 199, 0.11);
  --col-apu: #a98ee0;
  --col-apu-d: rgba(169, 142, 224, 0.11);
  --col-nlg: #9fb0bd;
  --col-nlg-d: rgba(159, 176, 189, 0.11);
  --col-lh: #7a9dc2;
  --col-lh-d: rgba(122, 157, 194, 0.11);
  --col-rh: #ad8f6a;
  --col-rh-d: rgba(173, 143, 106, 0.11);

  /* Alerts — toned down from neon */
  --warn: #e2525c;
  --warn-d: rgba(226, 82, 92, 0.12);
  --caution: #e4a256;
  --caution-d: rgba(228, 162, 86, 0.12);
  --go: #3fd39c;
  --advisory: #e0c34a;
  --advisory-d: rgba(224, 195, 74, 0.1);

  /* Typography */
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;

  /* Geometry & elevation */
  --r: 12px;
  --r2: 9px;
  --r3: 6px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);

  /* Focus rings → accent (names kept for compatibility) */
  --glow-af: 0 0 0 3px rgba(79, 199, 133, 0.18);
  --glow-e1: 0 0 0 3px rgba(77, 124, 251, 0.18);
  --glow-warn: 0 0 0 3px rgba(226, 82, 92, 0.18);
  --input-h: 38px;
  --card-pad: 18px;
}

[data-theme='light'] {
  --bg: #fafbfc;
  --s1: #ffffff;
  --s2: #f2f4f6;
  --s3: #e9ecf0;
  --s4: #dde1e7;
  --border: rgba(20, 24, 30, 0.22);
  --b2: rgba(20, 24, 30, 0.32);
  --b3: rgba(20, 24, 30, 0.42);
  --text: #1c2229;
  --t2: #4d5561;
  --t3: #6b7480;
  --t4: #98a1ac;

  --accent: #3763e0;
  --accent-d: rgba(55, 99, 224, 0.09);
  --accent-strong: #2648b8;

  --col-af: #2f9e63;
  --col-af-d: rgba(47, 158, 99, 0.1);
  --col-e1: #3f6fd6;
  --col-e1-d: rgba(63, 111, 214, 0.09);
  --col-e2: #1f92a0;
  --col-e2-d: rgba(31, 146, 160, 0.09);
  --col-apu: #7d5fc9;
  --col-apu-d: rgba(125, 95, 201, 0.09);
  --col-nlg: #62717f;
  --col-nlg-d: rgba(98, 113, 127, 0.1);
  --col-lh: #4a7396;
  --col-lh-d: rgba(74, 115, 150, 0.09);
  --col-rh: #8a6a48;
  --col-rh-d: rgba(138, 106, 72, 0.09);

  --warn: #c93f48;
  --warn-d: rgba(201, 63, 72, 0.09);
  --caution: #b9791f;
  --caution-d: rgba(185, 121, 31, 0.1);
  --go: #1f9a6e;
  --advisory: #9c8125;
  --advisory-d: rgba(156, 129, 37, 0.12);

  --shadow: 0 10px 28px rgba(20, 24, 30, 0.1);
  --shadow-sm: 0 2px 8px rgba(20, 24, 30, 0.06);
  --glow-af: 0 0 0 3px rgba(47, 158, 99, 0.14);
  --glow-e1: 0 0 0 3px rgba(63, 111, 214, 0.14);
  --glow-warn: 0 0 0 3px rgba(201, 63, 72, 0.14);
}

/* ── 2. BASE ───────────────────────────────────────── */
body {
  font-weight: 400;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Calmer status pulse: opacity only, no scaling */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: none;
  }
  50% {
    opacity: 0.45;
    transform: none;
  }
}

/* ── 3. ICONS (inline SVG) ─────────────────────────── */
.sb-nav-icon,
.sb-collapse-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sb-nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.sb-collapse-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.collapsed .sb-collapse-icon svg {
  transform: rotate(180deg);
}
.theme-btn svg,
.notif-btn svg,
#btn-print svg {
  width: 15px;
  height: 15px;
  display: block;
}
.sb-hamburger svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ── 4. SIDEBAR ────────────────────────────────────── */
.sidebar {
  background: var(--s1);
  border-right: var(--border-w) solid var(--border);
}
.sb-logo {
  min-height: 56px;
}
.sb-logo-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.sb-logo-ver {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--t3);
}

/* Registration block: neutral surface, tinted accent border +
   status dot (no left rail). Same horizontal inset (10px) and
   inner padding (12px) as nav items so the sidebar reads as one
   unified block. */
.sb-reg {
  background: var(--s2);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: var(--r2);
  padding: 9px 12px;
  margin: 12px 10px 4px;
  max-width: none;
  width: calc(100% - 20px);
}
.sb-reg::before {
  display: none;
}
.sb-reg-val,
.sb-reg input {
  color: var(--accent);
}
.sb-reg-lbl {
  font-family: var(--sans);
  letter-spacing: 0.6px;
}

/* Section labels — left edge aligned with nav item text (10px
   inset + 12px inner padding = 22px) */
.sb-section-lbl {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--t4);
  padding: 16px 22px 5px;
}

/* Nav items: sentence case, sans, accent active state.
   Uniform geometry: same inset, inner padding and height for
   every item so the column aligns with the reg pill above. */
.sb-nav-item {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--t2);
  padding: 7px 12px;
  margin: 2px 10px;
  min-height: 34px;
  width: calc(100% - 20px);
  border-radius: var(--r2);
  gap: 10px;
}
.sb-nav-item:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}
.sb-nav-item.active {
  color: var(--accent);
  background: var(--accent-d);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.sb-nav-item.active::before {
  display: none;
}
.sb-nav-badge {
  background: var(--warn);
  font-family: var(--sans);
  font-size: 9.5px;
  padding: 1px 6px;
}

/* Collapsed sidebar: keep widths consistent with the narrower margins */
.sidebar.collapsed .sb-nav-item {
  width: calc(100% - 8px);
}
.sidebar.collapsed .sb-reg {
  width: calc(100% - 16px);
}

/* Collapse + user card */
.sb-collapse-btn {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--t3);
}
.sb-user-card {
  border-radius: var(--r2);
}
.sb-user-avatar {
  background: var(--accent);
  font-family: var(--sans);
}
.sb-user-name {
  font-size: 12px;
}
.sb-user-role {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.2px;
  color: var(--t3);
}

[data-theme='light'] .sb-nav-item:hover {
  background: rgba(16, 24, 40, 0.04);
}
[data-theme='light'] .sb-nav-item.active {
  background: var(--accent-d);
  color: var(--accent-strong);
}

/* ── 5. TOPBAR ─────────────────────────────────────── */
.main-topbar {
  height: 52px;
  box-shadow: none;
  border-bottom: var(--border-w) solid var(--border);
}
.main-topbar-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.base-pill {
  background: var(--s2);
  border: var(--border-w) solid var(--border);
  border-radius: 999px;
  color: var(--t2);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 0 12px;
  height: 30px;
  display: inline-flex;
  align-items: center;
}

/* Unified action-bar pill: every control in the topbar right
   group shares the same height, padding, surface and hover so
   text buttons (+AC, PT) and icon buttons (print, bell, theme)
   form one consistent row. */
.main-topbar-r .btn,
.main-topbar-r .notif-btn,
.main-topbar-r .theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 34px;
  padding: 0 10px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--r2);
  background: var(--s2);
  color: var(--t2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2px;
  box-shadow: none;
  transition: var(--t-snappy);
}
.main-topbar-r #lang-btn {
  font-family: var(--mono);
}
.main-topbar-r .btn:hover,
.main-topbar-r .notif-btn:hover,
.main-topbar-r .theme-btn:hover {
  background: var(--s3);
  border-color: var(--b2);
  color: var(--text);
  transform: none;
}
.main-topbar-r .notif-btn.has-unread {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-d);
}

/* ── 6. TABS (page sub-navigation) ─────────────────── */
.tab {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--r2);
}
.tab.on {
  color: var(--accent);
  background: var(--accent-d);
  border-color: transparent;
  box-shadow: none;
}
[data-theme='light'] .tab.on {
  color: var(--accent-strong);
  background: var(--accent-d);
  border-color: transparent;
}
nav {
  border-bottom: var(--border-w) solid var(--border);
  box-shadow: none;
}
[data-theme='light'] nav {
  border-bottom: var(--border-w) solid var(--border);
  box-shadow: none;
}

/* ── 7. TOTALS BAR — flat cards, colour as accent rail ── */
.tbar-wrap {
  box-shadow: none;
  border-bottom: var(--border-w) solid var(--border);
}
.tc,
.tc.af,
.tc.e1,
.tc.e2,
.tc.apu,
.tc.nlg,
.tc.lh,
.tc.rh {
  background: var(--s1);
}
/* Colour identity via tinted full border (no rail) */
.tc {
  --tc-col: var(--b3);
  border: 1px solid color-mix(in srgb, var(--tc-col) 35%, transparent);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}
.tc.af {
  --tc-col: var(--col-af);
}
.tc.e1 {
  --tc-col: var(--col-e1);
}
.tc.e2 {
  --tc-col: var(--col-e2);
}
.tc.apu {
  --tc-col: var(--col-apu);
}
.tc.nlg {
  --tc-col: var(--col-nlg);
}
.tc.lh {
  --tc-col: var(--col-lh);
}
.tc.rh {
  --tc-col: var(--col-rh);
}
.tc:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--tc-col) 60%, transparent);
}
.tc::before {
  display: none;
}
.tc-lbl {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.9px;
  color: var(--t3);
  opacity: 1;
}
.tc-h {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.tc-c {
  font-size: 12px;
  font-weight: 500;
}
.tc-sub {
  border-top: var(--border-w) solid var(--border);
  color: var(--t3);
}
[data-theme='light'] .tc {
  border-color: color-mix(in srgb, var(--tc-col) 40%, transparent) !important;
}

/* ── 8. CARDS ──────────────────────────────────────── */
.card {
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.card-hd {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.8px;
  color: var(--t3);
}
.card-hd b {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.1px;
}

/* ── 9. BUTTONS ────────────────────────────────────── */
.btn {
  font-weight: 600;
  letter-spacing: 0;
  border-radius: var(--r2);
  padding: 8px 16px;
}
.btn:hover {
  transform: none;
}
.btn-g {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-g:hover {
  background: var(--accent-strong);
  filter: none;
  box-shadow: var(--shadow-sm);
  transform: none;
}
.btn-b {
  background: transparent;
  color: var(--col-e1);
  border: var(--border-w) solid var(--b2);
}
.btn-b:hover {
  background: var(--col-e1-d);
  border-color: var(--col-e1);
  transform: none;
}
.btn-warn {
  background: transparent;
  border: 1px solid var(--warn);
}
.btn-warn:hover {
  background: var(--warn-d);
  transform: none;
}
.btn-gh:hover {
  background: var(--s2);
  transform: none;
}
.btn-apu:hover {
  filter: none;
  background: var(--col-apu-d);
  transform: none;
}
[data-theme='light'] .btn-g {
  color: #fff;
}

/* ── 10. FORMS ─────────────────────────────────────── */
.fg label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--t3);
}
.fg input,
.fg select,
.fg textarea {
  border: var(--border-w) solid var(--b2);
  border-radius: var(--r2);
  background: var(--s2);
  font-size: 12.5px;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-d);
  background: var(--s2);
}
[data-theme='light'] .fg input,
[data-theme='light'] .fg select,
[data-theme='light'] .fg textarea {
  background: #fff;
  border-color: var(--border);
}
.inp-af input[readonly] {
  box-shadow: none;
}

/* ── 11. TABLES ────────────────────────────────────── */
table {
  font-size: 10.5px;
}
thead th,
th {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--t3);
  background: var(--s2);
}
th {
  border-bottom: var(--border-w) solid var(--border);
}
/* Cabeçalho sticky: a divisória vai por box-shadow (viaja com o th). Um
   border-bottom com border-collapse é pintado com o CORPO da tabela, a camada
   que faz scroll — daí a "fuga" de 1px das linhas por baixo do cabeçalho. */
thead th {
  border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--border);
}
tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
tbody tr:hover td {
  background: var(--accent-d);
}
[data-theme='light'] th {
  background: var(--s2);
  color: var(--t2);
}
[data-theme='light'] tbody tr:nth-child(even) td {
  background: rgba(16, 24, 40, 0.018);
}

/* ── 12. BADGES & MISC ─────────────────────────────── */
.bdg {
  border-radius: var(--r3);
  font-weight: 600;
}
.banner-g,
.banner-b {
  box-shadow: none;
}
.modal {
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.alert-icon {
  color: var(--caution);
}
.alert-icon svg {
  display: inline-block;
}
.notif-empty-icon svg {
  width: 26px;
  height: 26px;
  opacity: 0.45;
}

/* ── 13. LOGIN ─────────────────────────────────────── */
#login-screen {
  --sans: 'Sora', system-ui, sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
  --accent: #47c8e0;
  --accent-d: rgba(71, 200, 224, 0.14);
  --accent-strong: #2fa8c0;
}
#login-screen::before {
  background: radial-gradient(circle, rgba(71, 200, 224, 0.08) 0%, transparent 70%);
}
#login-screen::after {
  background: radial-gradient(circle, rgba(232, 168, 86, 0.07) 0%, transparent 70%);
}
.login-box {
  border-radius: var(--r);
}
.login-sub {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 1px;
}
.login-fg label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.login-fg input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-d);
}
.btn-login {
  background: var(--accent);
  font-weight: 600;
}
.btn-login:hover {
  background: var(--accent-strong);
}

/* ── 14. TINTED BORDERS ────────────────────────────────
   GestAero border language: the old 2-4px left "rail" is
   replaced by a full 1px border tinted with the component's
   colour. Applies to dashboard widgets, toasts and alert
   panels (page-level CSS files carry their own version). */

/* Dashboard check cards */
.dash-chk2::before {
  display: none;
}
.dash-chk2.chk2-ok {
  border-color: color-mix(in srgb, var(--col-af) 45%, transparent);
}
.dash-chk2.chk2-warn {
  border-color: color-mix(in srgb, var(--caution) 45%, transparent);
}
.dash-chk2.chk2-due {
  border-color: color-mix(in srgb, var(--warn) 45%, transparent);
}
.chk2-item {
  border-left: var(--border-w) solid var(--border);
}

/* APU mini tiles */
.apu-mini::before {
  display: none;
}
.apu-mini {
  border-color: var(--border-hl);
}

/* Engine notes + maintenance status banner */
.dash-eng-note {
  border: 1px solid;
  border-radius: var(--r3);
}
.dm-stat-bnr {
  border: 1px solid color-mix(in srgb, var(--col-af) 45%, transparent);
  border-radius: var(--r3);
}

/* Toasts */
.toast.ok,
.toast.err,
.toast.warn,
.toast.info {
  border-left-width: 1px;
}
.toast.ok {
  border-color: color-mix(in srgb, var(--col-af) 50%, transparent);
}
.toast.err {
  border-color: color-mix(in srgb, var(--warn) 50%, transparent);
}
.toast.warn {
  border-color: color-mix(in srgb, var(--caution) 50%, transparent);
}
.toast.info {
  border-color: color-mix(in srgb, var(--col-e1) 50%, transparent);
}

/* Alert detail panel */
.alert-detail {
  border: 1px solid color-mix(in srgb, var(--caution) 45%, transparent);
}

/* ── 15. EXECUTIVE POLISH ──────────────────────────────
   Detail pass for client-facing demos: refined scrollbars,
   tabular numerals, brand block, premium login, modal and
   card finishing. Purely presentational. */

/* Thin corporate scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--b2) transparent;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--b2);
  border-radius: var(--r2);
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--b3);
}

/* Brand-tinted text selection */
::selection {
  background: rgba(77, 139, 245, 0.3);
}

/* Tabular numerals: technical figures align in columns */
td,
.tc-h,
.tc-c,
.chk2-val,
.sb-reg input {
  font-variant-numeric: tabular-nums;
}

/* Sidebar brand block: product wordmark + CAMO suite tag */
.sb-logo {
  min-height: 68px;
  padding: 15px 16px;
  gap: 12px;
  background:
    radial-gradient(circle at 18% 18%, rgba(61, 220, 151, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(77, 139, 245, 0.1), rgba(255, 255, 255, 0.02));
}
.sb-logo img {
  display: none;
}
.sb-logo-name {
  font-size: 15px;
  letter-spacing: 0;
}
.sb-logo-ver::before {
  content: '';
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--accent);
}

/* Topbar: a touch more presence */
.main-topbar {
  padding: 0 20px;
}
.main-topbar-title {
  font-size: 14px;
  letter-spacing: -0.15px;
}

/* Cards: softer header rule, consistent breathing room */
.card {
  padding: 18px;
}
.card-hd::after {
  background: linear-gradient(90deg, var(--border), transparent);
}

/* Buttons: uniform control height, perfectly centred content */
.btn:not(.btn-sm) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

/* Modals: executive finish */
.modal {
  border-radius: var(--r);
  border-color: var(--border);
}
.overlay {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Login: premium first impression */
#login-screen {
  position: relative;
  overflow: hidden;
}
#login-screen::before,
#login-screen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
#login-screen::before {
  top: -120px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(71, 200, 224, 0.5), transparent 70%);
  animation: ga-bg-drift-a 18s ease-in-out infinite;
}
#login-screen::after {
  bottom: -160px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(232, 168, 86, 0.38), transparent 70%);
  animation: ga-bg-drift-b 22s ease-in-out infinite;
}
@keyframes ga-bg-drift-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(60px, 40px);
  }
}
@keyframes ga-bg-drift-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-50px, -60px);
  }
}
.login-box {
  position: relative;
  z-index: 1;
  border-radius: var(--r);
  padding: 44px 40px 36px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 4%, var(--s1)) 0%,
    var(--s1) 55%
  );
  box-shadow:
    0 24px 80px rgba(1, 4, 9, 0.55),
    0 0 0 1px rgba(77, 139, 245, 0.07);
  text-align: center;
}
.login-box .login-fg {
  text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  #login-screen::before,
  #login-screen::after {
    animation: none;
  }
}
.login-logo {
  display: none;
}
.login-title {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.login-sub {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  margin-bottom: 28px;
}
.login-divider {
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 24px;
}
.login-fg input {
  height: 40px;
  border-radius: var(--r2);
}
.btn-login {
  min-height: 42px;
  border-radius: var(--r2);
  font-size: 13.5px;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 20px rgba(71, 200, 224, 0.28);
}
[data-theme='light'] .login-box {
  box-shadow:
    0 24px 80px rgba(16, 24, 40, 0.16),
    0 0 0 1px rgba(47, 168, 192, 0.08);
}
[data-theme='light'] #login-screen {
  --accent: #1f8fa8;
  --accent-strong: #17758a;
}

/* GestAero product identity */
.cfg-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--r);
  background:
    radial-gradient(circle at 3% 0%, rgba(61, 220, 151, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(77, 139, 245, 0.09), rgba(255, 255, 255, 0.015)), var(--s1);
}
.cfg-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cfg-overview h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
}
.cfg-overview p,
.cfg-desc {
  margin: 6px 0 0;
  color: var(--t2);
  font-size: 11.5px;
  line-height: 1.45;
}
.cfg-group-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cfg-group-tab {
  min-height: 30px;
  padding: 0 11px;
  border: var(--border-w) solid var(--border);
  border-radius: var(--r2);
  background: var(--s2);
  color: var(--t2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.cfg-group-tab:hover {
  border-color: var(--b2);
  color: var(--text);
}
.cfg-group-tab.on {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: var(--accent-d);
  color: var(--accent);
}
.cfg-sec.cfg-hidden {
  display: none;
}
.cfg-sec h3 + .cfg-desc,
.cfg-sec h3 + .cfg-hint {
  margin-bottom: 14px;
}
.ga-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  text-rendering: geometricPrecision;
}
.ga-wordmark span:first-child {
  color: var(--text);
}
.ga-wordmark span:last-child {
  color: transparent;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--accent) 76%, white) 0%,
    #3ddc97 45%,
    color-mix(in srgb, var(--accent) 76%, white) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 900;
  animation: ga-wordmark-shimmer 6s ease-in-out infinite;
}
@keyframes ga-wordmark-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.login-title.ga-wordmark {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 36px;
  letter-spacing: -1px;
}
.login-title.ga-wordmark::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), #3ddc97, transparent);
  transform: translateX(-50%);
  opacity: 0.85;
}
.ga-wordmark-sidebar {
  justify-content: flex-start;
  font-size: 16px;
}
.ga-wordmark-about {
  justify-content: flex-start;
  font-size: 16px;
}
.ga-brand-mark {
  --mark-size: 42px;
  display: inline-block;
  width: var(--mark-size);
  height: var(--mark-size);
  flex: 0 0 var(--mark-size);
  background-image: url('../assets/brand/gestaero-mark.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.sb-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.sb-logo-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.sb-logo-head .sb-logo-ver {
  font-size: 9px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.sb-logo-tag {
  margin-top: 1px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.sb-logo-ver::before {
  content: '' !important;
}
.sb-logo-ver {
  color: var(--t3);
}
.login-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 18px;
  isolation: isolate;
}
.login-logo::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(77, 139, 245, 0.22), transparent 60%),
    radial-gradient(circle at center, rgba(61, 220, 151, 0.14), transparent 65%);
  filter: blur(8px);
  z-index: -1;
  animation: ga-halo-pulse 5.5s ease-in-out infinite;
}
.login-logo img,
.login-wm,
.wm {
  display: none !important;
}
.ga-brand-mark-login {
  --mark-size: 92px;
  animation: ga-mark-float 6s ease-in-out infinite;
  filter: drop-shadow(0 12px 28px rgba(8, 14, 27, 0.55));
}
@keyframes ga-mark-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.05);
  }
}
@keyframes ga-halo-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ga-brand-mark-login,
  .login-logo::before,
  .ga-wordmark span:last-child {
    animation: none;
  }
}
.about-gestaero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: var(--border-w) solid var(--border);
  border-radius: var(--r);
  background:
    radial-gradient(circle at 10% 15%, rgba(61, 220, 151, 0.13), transparent 32%), var(--s1);
  padding: 14px;
}
.about-gestaero-mark {
  --mark-size: 56px;
}
.about-gestaero strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 15px;
}
.about-gestaero strong.ga-wordmark {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 16px;
}
.about-gestaero p,
.about-gestaero small {
  display: block;
  margin: 0;
  color: var(--t2);
  font-size: 11px;
  line-height: 1.45;
}
.about-gestaero small {
  margin-top: 6px;
  color: var(--t3);
  font-family: var(--mono);
  font-size: 9px;
}

/* Light theme cleanup: keep typography and surface colours on the same
   token system instead of mixing old hardcoded values from earlier layers. */
[data-theme='light'] body {
  font-weight: 500;
}
[data-theme='light'] .card,
[data-theme='light'] .notif-panel,
[data-theme='light'] .modal {
  background: var(--s1);
  border-color: var(--border);
}
[data-theme='light'] .card-hd,
[data-theme='light'] label,
[data-theme='light'] .fg label,
[data-theme='light'] .cfg-desc,
[data-theme='light'] .cfg-hint,
[data-theme='light'] .notif-msg,
[data-theme='light'] .toast-msg,
[data-theme='light'] .notif-empty-txt,
[data-theme='light'] .help {
  color: var(--t2);
}
[data-theme='light'] .card-hd,
[data-theme='light'] label,
[data-theme='light'] .fg label,
[data-theme='light'] .notif-title,
[data-theme='light'] .toast-title,
[data-theme='light'] .notif-msg,
[data-theme='light'] .toast-msg,
[data-theme='light'] .notif-empty-txt,
[data-theme='light'] .help,
[data-theme='light'] .cfg-desc,
[data-theme='light'] .cfg-hint,
[data-theme='light'] .cfg-group-tab,
[data-theme='light'] .btn {
  font-family: var(--sans);
}
[data-theme='light'] .card-hd,
[data-theme='light'] label,
[data-theme='light'] .fg label,
[data-theme='light'] .btn,
[data-theme='light'] .cfg-group-tab,
[data-theme='light'] .tab,
[data-theme='light'] th,
[data-theme='light'] .notif-title,
[data-theme='light'] .toast-title {
  font-weight: 700;
}
[data-theme='light'] td,
[data-theme='light'] input,
[data-theme='light'] select,
[data-theme='light'] textarea,
[data-theme='light'] .cfg-desc,
[data-theme='light'] .cfg-hint,
[data-theme='light'] .notif-msg,
[data-theme='light'] .toast-msg,
[data-theme='light'] .help {
  font-weight: 500;
}
[data-theme='light'] .main-topbar-title,
[data-theme='light'] .sb-nav-item.active,
[data-theme='light'] .cfg-overview h2,
[data-theme='light'] .card-hd b {
  font-weight: 750;
}
[data-theme='light'] th,
[data-theme='light'] td,
[data-theme='light'] .notif-title {
  color: var(--text);
}
[data-theme='light'] input,
[data-theme='light'] select,
[data-theme='light'] textarea {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  font-family: var(--sans);
}
[data-theme='light'] .btn-gh {
  background: var(--s2);
  color: var(--t2);
  border-color: var(--border);
}
[data-theme='light'] .btn-gh:hover,
[data-theme='light'] .notif-item:hover {
  background: var(--s3);
}
[data-theme='light'] .btn-gh:hover {
  color: var(--text);
  border-color: var(--b2);
}
