/* Propman Classic — LIGHT theme (2026 Grosvenor Systems brand guidelines v1.0).
   Selected per customer with "branding.theme": "classic-light" (publish-site.sh sets
   <html data-theme>). Every rule is scoped to that attribute, so linking this file is inert
   for customers on the original GSL theme.

   Palette roles (guidelines): white = foundation, #F3F1FA = structure/variation,
   teal #2FB8C5 = action (buttons/CTAs), deep purple #3A2F8F = structure/emphasis,
   light purple #8C82F8 = personality (accents, never behind text), #1A1A1A = text.
   Accessibility tweaks, deliberate: CTA text is #1A1A1A on teal (white on teal is 2.4:1);
   secondary text uses a darker step of the brand grey (#7F7E7E is 4.0:1 on white, below AA
   for small text); links use deep purple, not light purple (3.2:1). */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root[data-theme="classic-light"] {
  --brand-teal: #2FB8C5;
  --brand-teal-hover: #4CC6D1;
  --brand-purple: #3A2F8F;
  --brand-purple-light: #8C82F8;
  --brand-bg: #F3F1FA;
  --brand-text: #1A1A1A;
  --brand-grey: #7F7E7E;

  --purple-deep: #F3F1FA;           /* page/backdrop surfaces */
  --purple-mid: #E6E2F6;
  --purple-vivid: #3A2F8F;          /* selected / emphasis fills */
  --purple-light: #8C82F8;          /* focus rings, hover borders */
  --purple-glow: rgba(47, 184, 197, 0.28);
  --glass: #FFFFFF;
  --glass-heavy: rgba(255, 255, 255, 0.94);
  --glass-light: #F3F1FA;
  --text: #1A1A1A;
  --muted: #5E5D5D;
  --border: rgba(58, 47, 143, 0.16);
  --border-light: rgba(26, 26, 26, 0.12);
  --success: #1F9D6B;
  --danger: #C2334D;

  --chart-surface: #FFFFFF;
  --chart-grid: rgba(26, 26, 26, 0.09);
  --chart-axis: #5E5D5D;
  --chart-cross: rgba(26, 26, 26, 0.3);
}

[data-theme="classic-light"] body,
[data-theme="classic-light"] .admin-body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(1000px 560px at 50% -14%, rgba(140, 130, 248, 0.16), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #F3F1FA 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
[data-theme="classic-light"] button,
[data-theme="classic-light"] input { font-family: inherit; }

[data-theme="classic-light"] .card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 12px 40px rgba(58, 47, 143, 0.10);
  border-top: 4px solid var(--brand-purple);
}
[data-theme="classic-light"] .card h1 { font-weight: 700; letter-spacing: -0.02em; }
[data-theme="classic-light"] #logoImage { content: url('../images/PropmanClassicLogo.png'); }
[data-theme="classic-light"] .card-logo { height: 64px; margin-bottom: 24px; opacity: 1; }

/* Action = teal */
[data-theme="classic-light"] .button-primary {
  background: var(--brand-teal);
  color: var(--brand-text);
  box-shadow: 0 2px 10px var(--purple-glow);
}
[data-theme="classic-light"] .button-primary:hover {
  background: var(--brand-teal-hover);
  box-shadow: 0 6px 20px rgba(47, 184, 197, 0.35);
}
[data-theme="classic-light"] .button-secondary { background: #FFFFFF; color: var(--brand-purple); border-color: rgba(58, 47, 143, 0.28); }
[data-theme="classic-light"] .button-secondary:hover { background: var(--brand-bg); border-color: var(--brand-purple); }
[data-theme="classic-light"] .spinner { border-color: rgba(26, 26, 26, 0.2); border-top-color: var(--brand-text); }
[data-theme="classic-light"] .status-dot { box-shadow: none; }

/* Links: deep purple on light surfaces */
[data-theme="classic-light"] .support-item a,
[data-theme="classic-light"] .linkbtn,
[data-theme="classic-light"] .status-tip a { color: var(--brand-purple); }
[data-theme="classic-light"] .support-item a:hover,
[data-theme="classic-light"] .linkbtn:hover,
[data-theme="classic-light"] .status-tip a:hover { color: var(--brand-text); }

[data-theme="classic-light"] .support-info { background: #FFFFFF; }
[data-theme="classic-light"] .support-item { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="classic-light"] .support-item:hover { border-color: var(--brand-purple); }
[data-theme="classic-light"] .debug-panel #log { background: var(--brand-bg); color: var(--text); }

/* Segmented pickers: selected = deep purple */
[data-theme="classic-light"] .app-picker { background: #FFFFFF; }
[data-theme="classic-light"] .app-picker input:checked + span { background: var(--brand-purple); color: #FFFFFF; }

[data-theme="classic-light"] .auth-input { background: #FFFFFF; border-color: rgba(26, 26, 26, 0.18); }
[data-theme="classic-light"] .auth-input:focus { border-color: var(--brand-purple-light); box-shadow: 0 0 0 3px rgba(140, 130, 248, 0.22); }
[data-theme="classic-light"] .card-gear:hover { color: var(--brand-purple); }
[data-theme="classic-light"] .status.pending .status-dot { background: var(--brand-purple-light); box-shadow: none; }

/* Streaming view, pull-tab, branded "Connecting…" splash */
[data-theme="classic-light"] .stream-tab:hover { background: var(--brand-purple); color: #FFFFFF; }
[data-theme="classic-light"] .stream-connecting {
  background:
    radial-gradient(1000px 560px at 50% -14%, rgba(140, 130, 248, 0.18), transparent 62%),
    linear-gradient(180deg, #FFFFFF 0%, #F3F1FA 70%);
}
[data-theme="classic-light"] #connLogo { content: url('../images/PropmanClassicLogo.png'); }
[data-theme="classic-light"] .conn-logo::before { background: radial-gradient(circle, rgba(140, 130, 248, 0.35), transparent 60%); }
[data-theme="classic-light"] .conn-bar { background: rgba(58, 47, 143, 0.1); }
[data-theme="classic-light"] .conn-bar span { background: linear-gradient(90deg, transparent, var(--brand-teal), transparent); }

/* Overlay on AWS's toolbar: colour logo (no invert) on its light bar, white logo on its dark bar.
   Disconnect is an action -> teal. */
[data-theme="classic-light"] .ec-brand-left img { content: url('../images/PropmanClassicLogo.png'); filter: none; opacity: 1; }
[data-theme="classic-light"] .ec-brand-right .ec-brand-disconnect { background: var(--brand-teal); color: var(--brand-text); box-shadow: 0 2px 8px rgba(47, 184, 197, 0.3); }
[data-theme="classic-light"] .ec-brand-right .ec-brand-disconnect:hover { background: var(--brand-teal-hover); box-shadow: 0 4px 14px rgba(47, 184, 197, 0.4); }
@media (prefers-color-scheme: dark) {
  [data-theme="classic-light"] .ec-brand-left img { content: url('../images/PropmanClassicWhiteLogo.png'); }
}

/* ── Admin dashboard ── */
[data-theme="classic-light"] .admin-logo { height: 48px; }
[data-theme="classic-light"] .admin-panel,
[data-theme="classic-light"] .kpi { backdrop-filter: none; box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04), 0 6px 20px rgba(58, 47, 143, 0.06); }
[data-theme="classic-light"] .kpi-hero { border-left: 4px solid var(--brand-purple); }
[data-theme="classic-light"] .chart-axis { fill: var(--chart-axis); }
[data-theme="classic-light"] .chart-tip { backdrop-filter: none; box-shadow: 0 6px 20px rgba(26, 26, 26, 0.12); }
[data-theme="classic-light"] .hbar-track { background: var(--brand-bg); }
[data-theme="classic-light"] .range-btn,
[data-theme="classic-light"] .day-chip { background: #FFFFFF; }
[data-theme="classic-light"] .range-btn:hover { background: var(--brand-bg); }
[data-theme="classic-light"] .range-btn-on,
[data-theme="classic-light"] .day-chip:has(input:checked) { background: var(--brand-purple); border-color: var(--brand-purple); color: #FFFFFF; }
[data-theme="classic-light"] .admin-table td { border-bottom-color: rgba(26, 26, 26, 0.07); }
[data-theme="classic-light"] .pill-good { background: rgba(31, 157, 107, 0.1); border-color: rgba(31, 157, 107, 0.35); color: #13704B; }
[data-theme="classic-light"] .pill-warn { background: rgba(194, 51, 77, 0.08); border-color: rgba(194, 51, 77, 0.35); color: #A0263D; }
[data-theme="classic-light"] .admin-toast { backdrop-filter: none; box-shadow: 0 10px 40px rgba(26, 26, 26, 0.15); }
[data-theme="classic-light"] .admin-toast-bad { border-color: rgba(194, 51, 77, 0.5); }
[data-theme="classic-light"] .hatch-pre { background: var(--brand-bg); }
[data-theme="classic-light"] .rs-stat { background: var(--brand-bg); }
