/* FlowAlp.com light theme tokens — aligned with public site globals.css */
:root {
  --primary-color: #e3271b;
  --primary-color-text: #ffffff;
  --background-color: #fafaf8;
  --text-color: #012845;
  --on-primary-color: #ffffff;
  --link-color: #1d4564;
  --border-color: #e2e8ee;
  --text-color-secondary: #4c647a;
  --surface-ground: #f3f5f6;
  --surface-card: #ffffff;
  --surface-section: #fafaf8;
  --surface-border: #e2e8ee;
  --surface-hover: #eef2f5;
  --sidebar-bg: #ffffff;
  --header-bg: #ffffff;
  --header-border: var(--border-color);
  --navy: #012845;
  --navy-soft: #1d4564;
  --accent: #e3271b;
  --accent-strong: #c11d12;
  --band: #012845;
  --on-band: #eef4f9;
  --ridge: rgba(1, 40, 69, 0.06);
  --font-display: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --color-warning: #ca8a04;
  --color-info: #0ea5e9;
  --progress-track: #e2e8ee;
  --progress-value: var(--primary-color);
  --chart-text: #1d4564;
  --chart-subtext: #4c647a;
  --chart-border: rgba(1, 40, 69, 0.2);
  --chart-grid: rgba(1, 40, 69, 0.08);
  --chart-tooltip-bg: rgba(1, 40, 69, 0.95);
  --chart-blue: #1d4564;
  --chart-cyan: #0891b2;
  --chart-emerald: #059669;
  --chart-amber: #d97706;
  --chart-danger: #e3271b;
  --chart-track: rgba(1, 40, 69, 0.12);
  --shadow-sm: 0 1px 2px rgba(1, 40, 69, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(1, 40, 69, 0.12);
  --shadow-lg: 0 16px 40px -12px rgba(1, 40, 69, 0.16);
}

/* Align PrimeNG primary controls with platform accent (overrides saga-blue) */
.p-button:not(.p-button-outlined):not(.p-button-text):not(.p-button-link):not(.p-button-secondary):not(.p-button-success):not(.p-button-info):not(.p-button-warning):not(.p-button-help):not(.p-button-danger):not(.p-selectbutton > .p-button) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--primary-color-text);
}
.p-button:not(.p-button-outlined):not(.p-button-text):not(.p-button-link):not(.p-button-secondary):not(.p-button-success):not(.p-button-info):not(.p-button-warning):not(.p-button-help):not(.p-button-danger):not(.p-selectbutton > .p-button):enabled:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.p-button.p-button-outlined {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* SelectButton options are .p-button elements: keep them out of the solid primary fill above so the
   selected option (.p-highlight) stands apart from the others. */
.p-selectbutton .p-button {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: var(--text-color);
}
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {
  background: var(--surface-hover);
  border-color: var(--text-color-secondary);
  color: var(--text-color);
}
.p-selectbutton .p-button.p-highlight {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--primary-color-text);
}
.p-selectbutton .p-button.p-highlight:not(.p-disabled):hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--primary-color-text);
}
.p-selectbutton .p-button.p-highlight:not(.p-button-icon-only) .p-button-label::before {
  font-family: 'primeicons';
  content: '\e909'; /* pi-check */
  font-size: 0.75em;
  font-weight: normal;
  margin-right: 0.375rem;
}
.p-selectbutton .p-button:focus {
  outline: none;
  box-shadow: none;
}
.p-selectbutton .p-button:focus-visible {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 2px var(--surface-card), 0 0 0 4px var(--primary-color);
}

.nav-link.active {
  color: var(--primary-color);
}
