/*
 * FSA Design System — Precision Academic v2.0
 * Unified, professional, data-dense SaaS portal
 * Fonts: Roboto (display/headings) + Open Sans (body/forms/tables) + JetBrains Mono (numbers/data)
 * 
 * This file consolidates ALL shared UI components previously scattered
 * across inline <style> blocks in individual pages.
 */

/* ── Google Fonts (Open Sans & Roboto for maximum legibility + JetBrains Mono for metrics) ── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════ */
:root {
  /* Brand — Sapphire Ocean */
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --brand-darker: #075985;
  --brand-light: #f0f9ff;
  --brand-mid: #bae6fd;

  /* Semantic */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #059669;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #d97706;
  --danger: #f43f5e;
  --danger-light: #ffe4e6;
  --danger-dark: #e11d48;
  --info: #06b6d4;
  --info-light: #cffafe;
  --info-dark: #0891b2;

  /* Surface */
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #38bdf8;

  /* Text & Readability (WCAG AA High Contrast) */
  --text-primary: #0f172a;   /* Slate 900: Crisp display text */
  --text-secondary: #334155; /* Slate 700: High-contrast body text */
  --text-muted: #64748b;     /* Slate 500: Clear legible secondary text */
  --text-subtle: #94a3b8;    /* Slate 400: Decorative borders/subtle hints */
  --text-inverse: #ffffff;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(2, 132, 199, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 32px rgba(2, 132, 199, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 48px rgba(2, 132, 199, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

  /* Radii — standardized across all pages */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-3xl: 32px;
  --r-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --t-fast: 0.15s;
  --t-base: 0.25s;
  --t-slow: 0.5s;

  /* Legacy aliases for style.css compatibility */
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #93c5fd;
  --border-color: rgba(226, 232, 240, 0.8);
  --glass: rgba(255, 255, 255, 0.7);
  --bg-main: #f8fafc;

  /* ── 3D Claymorphic Tokens ── */
  --clay-bg: #ffffff;
  --clay-surface: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  --clay-card-shadow: 14px 20px 36px rgba(15, 23, 42, 0.08), -8px -8px 20px rgba(255, 255, 255, 0.9), inset 2px 2px 4px rgba(255, 255, 255, 0.9), inset -3px -3px 6px rgba(15, 23, 42, 0.04);
  --clay-card-border: 1.5px solid rgba(255, 255, 255, 0.8);
  --clay-btn-shadow: 0 10px 24px rgba(2, 132, 199, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.4), inset 0 -3px 5px rgba(0, 0, 0, 0.2);
  --clay-btn-hover: 0 14px 32px rgba(2, 132, 199, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.5), inset 0 -3px 5px rgba(0, 0, 0, 0.25);
  --clay-btn-active: 0 4px 10px rgba(2, 132, 199, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  --clay-input-shadow: inset 3px 3px 6px rgba(15, 23, 42, 0.06), inset -2px -2px 5px rgba(255, 255, 255, 0.9);
  --clay-pill-shadow: 4px 6px 14px rgba(15, 23, 42, 0.06), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.9), inset -1.5px -1.5px 3px rgba(15, 23, 42, 0.04);
}

/* ═══════════════════════════════════════════════════════
   THEME PALETTES
   ═══════════════════════════════════════════════════════ */

/* 1. Emerald Academic (Campus Teal/Green) */
[data-theme="emerald"] {
  --brand: #059669;
  --brand-dark: #047857;
  --brand-darker: #065f46;
  --brand-light: #ecfdf5;
  --brand-mid: #a7f3d0;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-light: #5eead4;
  --border-focus: #34d399;
  --shadow-md: 0 4px 16px rgba(5, 150, 105, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 32px rgba(5, 150, 105, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 2. Royal Violet (Faculty Accent) */
[data-theme="violet"] {
  --brand: #7c3aed;
  --brand-dark: #6d28d9;
  --brand-darker: #5b21b6;
  --brand-light: #faf5ff;
  --brand-mid: #ddd6fe;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-light: #c4b5fd;
  --border-focus: #a78bfa;
  --shadow-md: 0 4px 16px rgba(124, 58, 237, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 32px rgba(124, 58, 237, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 3. Sapphire Ocean */
[data-theme="sapphire"] {
  --brand: #0284c7;
  --brand-dark: #0369a1;
  --brand-darker: #075985;
  --brand-light: #f0f9ff;
  --brand-mid: #bae6fd;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #93c5fd;
  --border-focus: #38bdf8;
  --shadow-md: 0 4px 16px rgba(2, 132, 199, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 32px rgba(2, 132, 199, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* 4. Dark Obsidian (Full Modern Dark Theme) */
[data-theme="dark"] {
  --brand: #6366f1;
  --brand-dark: #4f46e5;
  --brand-darker: #4338ca;
  --brand-light: rgba(99, 102, 241, 0.15);
  --brand-mid: #818cf8;
  --accent: #a855f7;
  --accent-dark: #9333ea;
  --accent-light: #c084fc;
  
  --surface: #1e293b;
  --surface-2: #0f172a;
  --surface-3: #334155;
  --bg: #0f172a;
  --border: #334155;
  --border-light: #1e293b;
  --border-focus: #818cf8;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.4);
  
  --border-color: rgba(51, 65, 85, 0.8);
  --glass: rgba(30, 41, 59, 0.75);
  --bg-main: #0f172a;

  /* ── 3D Claymorphic Tokens (Dark Mode) ── */
  --clay-bg: #1e293b;
  --clay-surface: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  --clay-card-shadow: 14px 20px 36px rgba(0, 0, 0, 0.45), -4px -4px 14px rgba(255, 255, 255, 0.03), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.12), inset -3px -3px 6px rgba(0, 0, 0, 0.35);
  --clay-card-border: 1.5px solid rgba(255, 255, 255, 0.1);
  --clay-input-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.45), inset -1.5px -1.5px 3px rgba(255, 255, 255, 0.05);
  --clay-pill-shadow: 4px 6px 12px rgba(0, 0, 0, 0.35), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.1), inset -1.5px -1.5px 3px rgba(0, 0, 0, 0.25);
}

/* ── Reusable 3D Claymorphic Utilities ────────────────────── */
.clay-card {
  background: var(--clay-surface);
  border: var(--clay-card-border);
  box-shadow: var(--clay-card-shadow);
  border-radius: var(--r-3xl, 32px);
  position: relative;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}

.clay-card:hover {
  transform: translateY(-4px);
}

.clay-btn {
  background: linear-gradient(135deg, var(--brand, #0284c7) 0%, var(--brand-dark, #0369a1) 100%);
  color: #ffffff !important;
  border: none;
  border-radius: var(--r-xl, 18px);
  box-shadow: var(--clay-btn-shadow);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.clay-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--clay-btn-hover);
}

.clay-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: var(--clay-btn-active);
}

.clay-input {
  background: var(--surface, #ffffff);
  border: 1.5px solid var(--border, #cbd5e1);
  border-radius: var(--r-lg, 14px);
  box-shadow: var(--clay-input-shadow);
  color: var(--text-primary, #0f172a);
  outline: none;
  transition: all 0.2s ease;
}

.clay-input:focus {
  border-color: var(--brand, #0284c7);
  box-shadow: var(--clay-input-shadow), 0 0 0 4px rgba(2, 132, 199, 0.18);
}

.clay-pill {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: var(--clay-pill-shadow);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Theme Palette Picker UI (Hidden) */
.theme-picker-group,
.theme-picker-opt {
  display: none !important;
}


/* ═══════════════════════════════════════════════════════
   BASE RESET
   ═══════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Global Page Background ── */
html {
  background-color: #f8fafc;
  min-height: 100%;
}

body {
  font-family: 'Open Sans', 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: transparent !important;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
}

/* ── Centered Global Watermark ── */
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50vw;
  height: 50vh;
  background-image: url('../images/logo/SSAHE_LOGO2.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
  z-index: -1; /* Keeps it strictly behind all cards and content */
}


h1:not(#pageTitle):not(#cardName) {
  letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Roboto', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: var(--r-full);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS (single source of truth)
   ═══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.3);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}

@keyframes pulse-subtle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.animate-in {
  animation: fadeUp 0.5s var(--ease-out) both;
}

.animate-fade {
  animation: fadeIn 0.3s var(--ease-out) both;
}

.animate-scale {
  animation: scaleIn 0.3s var(--ease-out) both;
}

.animate-delay-1 {
  animation-delay: 0.06s;
}

.animate-delay-2 {
  animation-delay: 0.12s;
}

.animate-delay-3 {
  animation-delay: 0.18s;
}

.animate-delay-4 {
  animation-delay: 0.24s;
}

/* ═══════════════════════════════════════════════════════
   CARDS — unified card system
   ═══════════════════════════════════════════════════════ */

/* Standard card */
.fsa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) ease, transform var(--t-base) ease;
}

.fsa-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.fsa-card-flat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

/* Glass card — used by overview, history, workshops, publications, etc. */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: rgba(79, 70, 229, 0.2);
}

/* Premium card — used by profile.html */
.premium-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
}

/* Section card — used by incentive pages */
.section-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

/* ═══════════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════════ */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base) ease, transform var(--t-base) ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-value {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS — unified button system
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Roboto', 'Open Sans', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--r-lg);
  padding: 9px 18px;
  border: none;
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary — indigo filled */
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Premium — alias for btn-primary, used by 10+ pages */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-lg);
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-premium:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-premium:active {
  transform: translateY(0);
}

/* Secondary */
.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: #cbd5e1;
}

/* Success */
.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: var(--success-dark);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* Danger */
.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.btn-danger:hover {
  background: var(--danger-dark);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-primary);
}

/* Sizes */
.btn-sm {
  padding: 6px 13px;
  font-size: 12px;
  border-radius: var(--r-md);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: var(--r-xl);
}

.btn-icon {
  padding: 8px;
  border-radius: var(--r-md);
}

/* ═══════════════════════════════════════════════════════
   BADGES / STATUS PILLS
   ═══════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.badge-submitted,
.badge-approved {
  background: var(--success-light);
  color: #065f46;
}

.badge-draft {
  background: var(--warning-light);
  color: #92400e;
}

.badge-pending,
.badge-frozen {
  background: var(--info-light);
  color: #164e63;
}

.badge-rejected,
.badge-error {
  background: var(--danger-light);
  color: #9f1239;
}

.badge-inactive,
.badge-not-started {
  background: #f1f5f9;
  color: #475569;
}

.badge-primary {
  background: var(--brand-light);
  color: #3730a3;
}

/* Status pill — used by admin incentive */
.status-pill {
  font-size: .62rem;
  font-weight: 800;
  padding: .25rem .75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.approved {
  background: #d1fae5;
  color: #065f46;
}

.status-pill.rejected {
  background: #ffe4e6;
  color: #9f1239;
}

.status-pill.draft {
  background: #f1f5f9;
  color: #475569;
}

.status-pill.submitted {
  background: #eef2ff;
  color: #3730a3;
}

/* ═══════════════════════════════════════════════════════
   PROGRESS BARS
   ═══════════════════════════════════════════════════════ */
.progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--r-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--brand), #818cf8);
  transition: width 0.7s var(--ease-out);
}

.progress-fill-success {
  background: linear-gradient(90deg, var(--success), #34d399);
}

.progress-fill-warning {
  background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.progress-track-thin {
  height: 3px;
}

.progress-track-thick {
  height: 8px;
}

/* ═══════════════════════════════════════════════════════
   FORM INPUTS
   ═══════════════════════════════════════════════════════ */
.fsa-input {
  width: 100%;
  padding: 9px 13px;
  font-size: 13.5px;
  font-family: 'Open Sans', 'Roboto', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  outline: none;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.fsa-input::placeholder {
  color: var(--text-muted);
}

.fsa-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.fsa-input:disabled,
.fsa-input[readonly] {
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: not-allowed;
}

.fsa-label {
  display: block;
  font-family: 'Roboto', 'Open Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.fsa-field {
  margin-bottom: 16px;
}

/* Legacy input-field from style.css */
.input-field {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.95rem;
  font-family: 'Open Sans', 'Roboto', system-ui, sans-serif;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Form group from style.css */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════ */
.fsa-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fsa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fsa-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.fsa-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--t-fast) ease;
}

.fsa-table tbody tr:last-child {
  border-bottom: none;
}

.fsa-table tbody tr:hover {
  background: rgba(79, 70, 229, 0.03);
}

.fsa-table tbody td {
  padding: 12px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.fsa-table tbody td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

/* Data table — used by admin incentive */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: #f1f5f9;
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.data-table th:first-child {
  border-radius: .75rem 0 0 .75rem;
}

.data-table th:last-child {
  border-radius: 0 .75rem .75rem 0;
}

.table-row td {
  padding: .875rem 1rem;
  font-size: .82rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table-row:hover td {
  background: #f8fafc;
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-header-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER (appraisal form)
   ═══════════════════════════════════════════════════════ */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
}

.page-title {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.page-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.stage-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stage-number {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.stage-text small {
  font-size: 0.625rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
}

.stage-text span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR & NAVIGATION
   ═══════════════════════════════════════════════════════ */
.fsa-sidebar {
  width: 256px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.fsa-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast) ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.fsa-nav-link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.fsa-nav-link.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}

.fsa-nav-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 12px;
  margin: 12px 0 4px;
}

/* Legacy nav-link — used by dashboard sidebars */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-lg);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t-fast) ease;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.nav-link.active {
  background: #f1f5f9;
  color: var(--brand);
  border-right: 3px solid var(--brand);
}

/* Sidebar transition */
.sidebar {
  transition: width 0.3s ease;
}

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.fsa-header {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

/* Dash nav — sticky nav used by incentive pages */
.dash-nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 5.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════
   LOADER / SPINNER
   ═══════════════════════════════════════════════════════ */
.fsa-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(79, 70, 229, 0.15);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* ═══════════════════════════════════════════════════════
   SHIMMER SKELETON
   ═══════════════════════════════════════════════════════ */
.fsa-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-md);
}

/* ═══════════════════════════════════════════════════════
   PHASE BANNER
   ═══════════════════════════════════════════════════════ */
.phase-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 20px;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  gap: 12px;
}

.phase-banner-info {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.phase-banner-success {
  background: #d1fae5;
  border-color: #6ee7b7;
}

.phase-banner-warning {
  background: #fef3c7;
  border-color: #fde68a;
}

.phase-banner-neutral {
  background: #f1f5f9;
  border-color: var(--border);
}

.banner-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   ACTION BAR (floating bottom bar in forms)
   ═══════════════════════════════════════════════════════ */
.action-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 20;
}

/* ═══════════════════════════════════════════════════════
   STEPPER
   ═══════════════════════════════════════════════════════ */
.stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 0 4px 4px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 64px;
  gap: 6px;
  position: relative;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-item:last-child::before {
  display: none;
}

.step-item.done::before {
  background: var(--brand);
}

.step-item.active::before {
  background: linear-gradient(90deg, var(--brand), var(--border));
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--t-base) var(--ease-out);
  flex-shrink: 0;
}

.step-dot.done {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.step-dot.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
  transform: scale(1.1);
}

.step-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
  max-width: 70px;
  word-break: break-word;
}

.step-label.active {
  color: var(--brand);
}

.step-label.done {
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  max-width: 520px;
  width: 100%;
  animation: fadeUp 0.3s var(--ease-out);
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════ */
.fsa-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  min-width: 280px;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  z-index: 9999;
  animation: fadeUp 0.4s var(--ease-out);
}

.fsa-toast-success {
  border-left: 4px solid var(--success);
}

.fsa-toast-error {
  border-left: 4px solid var(--danger);
}

.fsa-toast-info {
  border-left: 4px solid var(--brand);
}

.fsa-toast-warning {
  border-left: 4px solid var(--warning);
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  margin-bottom: 12px;
  opacity: 0.4;
}

.empty-state-title {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════
   METRIC NUMBER DISPLAY
   ═══════════════════════════════════════════════════════ */
.metric-number {
  font-family: 'JetBrains Mono', 'Roboto', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.metric-number-sm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════
   PROFILE PAGE COMPONENTS
   ═══════════════════════════════════════════════════════ */
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.field-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.field-row.full {
  grid-template-columns: 1fr;
}

.val {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: #334155;
  min-height: 2.8rem;
  display: flex;
  align-items: center;
}

.val.empty {
  color: #94a3b8;
  font-style: italic;
}

.avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 2.5rem;
  overflow: hidden;
  background: #f1f5f9;
  border: 4px solid #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   FILTER BUTTONS (history page)
   ═══════════════════════════════════════════════════════ */
.filter-btn.active {
  background: var(--brand) !important;
  color: white !important;
  border-color: var(--brand) !important;
}

/* ═══════════════════════════════════════════════════════
   PART SECTIONS (appraisal form from style.css)
   ═══════════════════════════════════════════════════════ */
.part-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-2xl);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.part-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.part-header h3 {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════
   CARD CONTAINER (from style.css)
   ═══════════════════════════════════════════════════════ */
.card-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-2xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* ═══════════════════════════════════════════════════════
   NEBULA BACKGROUND
   ═══════════════════════════════════════════════════════ */
.bg-nebula {
  background:
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.06) 0px, transparent 50%),
    var(--bg);
  background-attachment: fixed;
}

/* ═══════════════════════════════════════════════════════
   GLASSMORPHISM
   ═══════════════════════════════════════════════════════ */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════
   UTILITY HELPERS
   ═══════════════════════════════════════════════════════ */
.text-gradient-brand {
  background: linear-gradient(135deg, var(--brand), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ring-brand:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.font-outfit {
  font-family: 'Roboto', 'Open Sans', sans-serif;
}

.font-inter {
  font-family: 'Open Sans', 'Roboto', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════════════════
   AUTO-SAVE INDICATOR
   ═══════════════════════════════════════════════════════ */
.autosave-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-ring 1.8s ease infinite;
}

/* ═══════════════════════════════════════════════════════
   WATERMARK BACKGROUND (appraisal form)
   ═══════════════════════════════════════════════════════ */
.watermark-bg {
  display: none;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fsa-header {
    padding: 0 16px;
  }

  .action-bar {
    padding: 10px 16px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .stepper {
    gap: 0;
  }

  .field-row,
  .field-row.three {
    grid-template-columns: 1fr;
  }

  /* Incentive summary strip — stack vertically on mobile */
  .summary-strip {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .summary-strip .w-px {
    width: 100%;
    height: 1px;
  }

  /* Incentive stepper — allow horizontal scroll */
  .stepper-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .step-node {
    min-width: 70px;
    width: 70px;
  }

  /* Bottom nav — full width on mobile */
  .bottom-nav {
    min-width: calc(100vw - 2rem);
    padding: 0.5rem 1rem;
  }
}

/* ═══════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════ */
@media print {
  .no-print {
    display: none !important;
  }

  .fsa-card,
  .glass-card,
  .premium-card,
  .section-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  body {
    background: white !important;
  }

  /* Hide the global watermark on print */
  body::before {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   PREMIUM READABLE TYPOGRAPHY & FORMS OVERRIDES
   ═══════════════════════════════════════════════════════ */
/* Scoped to internal portals (excluding public landing & login pages) */
body:not(.landing-page):not(.public-login-page) {
    font-family: 'Open Sans', 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    line-height: 1.6;
}

body:not(.landing-page):not(.public-login-page) h1,
body:not(.landing-page):not(.public-login-page) h2,
body:not(.landing-page):not(.public-login-page) h3,
body:not(.landing-page):not(.public-login-page) h4,
body:not(.landing-page):not(.public-login-page) h5,
body:not(.landing-page):not(.public-login-page) h6,
body:not(.landing-page):not(.public-login-page) .font-outfit,
body:not(.landing-page):not(.public-login-page) .font-display,
body:not(.landing-page):not(.public-login-page) .section-title,
body:not(.landing-page):not(.public-login-page) .page-title,
body:not(.landing-page):not(.public-login-page) .stat-value {
    font-family: 'Roboto', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    letter-spacing: -0.01em;
}

body:not(.landing-page):not(.public-login-page) p,
body:not(.landing-page):not(.public-login-page) span:not(.font-mono):not([class*="mono"]):not([style*="monospace"]):not([style*="JetBrains"]),
body:not(.landing-page):not(.public-login-page) a,
body:not(.landing-page):not(.public-login-page) li,
body:not(.landing-page):not(.public-login-page) td {
    font-family: 'Open Sans', 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body:not(.landing-page):not(.public-login-page) button,
body:not(.landing-page):not(.public-login-page) .btn,
body:not(.landing-page):not(.public-login-page) .clay-btn {
    font-family: 'Roboto', 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 600;
}

select.premium-input, select.form-input, select.fsa-input, select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 0.9rem !important;
    padding-right: 2.25rem !important;
    cursor: pointer;
    height: 2.5rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 2.5rem !important;
}

label, .fsa-label, .form-group label {
    font-family: 'Roboto', 'Open Sans', system-ui, -apple-system, sans-serif !important;
    color: #334155 !important; /* slate-700 */
    font-weight: 700 !important;
    font-size: 0.8rem !important; /* Highly legible 12.8px */
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    display: inline-block;
    margin-bottom: 0.35rem;
}

input, select, textarea, .fsa-input, .input-field, .premium-input, .clay-input {
    font-family: 'Open Sans', 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 0.95rem !important; /* 15.2px */
    color: #0f172a !important; /* slate-900 */
    border: 1.5px solid #cbd5e1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input::placeholder, textarea::placeholder {
    font-family: 'Open Sans', 'Roboto', system-ui, sans-serif !important;
    color: #64748b !important; /* slate-500: crisp legible placeholder */
    opacity: 0.85;
}

input:focus, select:focus, textarea:focus, .fsa-input:focus, .input-field:focus, .premium-input:focus, .clay-input:focus {
    border-color: var(--brand, #0284c7) !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
    outline: none !important;
}

.premium-input {
    min-height: 2.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.75rem !important;
}

/* ── Enhanced Table Readability & Contrast ── */
table thead th {
    font-family: 'Roboto', 'Open Sans', system-ui, sans-serif !important;
    background: #f8fafc !important;
    color: #1e293b !important; /* slate-800 */
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

table tbody td {
    font-family: 'Open Sans', 'Roboto', system-ui, sans-serif !important;
}

table tbody tr:hover {
    background: #f0f9ff !important; /* Subtle Sapphire Ocean highlight */
}