/* ==========================================================================
   VORTEX-SDN Enterprise Design Tokens & Multi-Theme Architecture
   Cisco NOC / Datadog Network Monitoring Inspired Multi-Theme System
   Flagship Dark NOC & True Enterprise Light Operations Theme
   ========================================================================== */

:root,
[data-theme="dark"] {
  /* ========================================================================
     1. STANDARD CORE THEME DESIGN TOKENS (DARK THEME)
     ======================================================================== */
  --background: #060913;
  --surface: #0f172a;
  --surface-secondary: #0a0f1d;
  --surface-elevated: #111c33;
  --surface-hover: #162444;

  --border: rgba(56, 189, 248, 0.16);
  --border-strong: rgba(0, 242, 254, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-disabled: #475569;

  --accent: #00f2fe;
  --accent-hover: #38bdf8;
  --accent-rgb: 0, 242, 254;

  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --danger: #ef4444;
  --danger-rgb: 239, 68, 68;
  --info: #0ea5e9;
  --info-rgb: 14, 165, 233;

  --input-background: #0a1122;
  --input-border: rgba(56, 189, 248, 0.25);

  --table-header: #0a0f1d;
  --table-row: #0f172a;
  --table-row-hover: #162444;
  --table-row-alt: #0d1527;

  --chart-grid: rgba(255, 255, 255, 0.06);
  --tooltip-background: rgba(13, 20, 36, 0.96);
  --tooltip-text: #f8fafc;
  --shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.65), 0 2px 4px -2px rgba(0, 0, 0, 0.45);

  /* Gauge Specific */
  --gauge-bg-track: #172033;

  /* ========================================================================
     2. BACKWARD-COMPATIBLE ALIASES FOR LEGACY PROPERTIES
     ======================================================================== */
  --bg-primary: var(--background);
  --bg-secondary: var(--surface-secondary);
  --bg-surface: var(--surface);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-subtle: rgba(255, 255, 255, 0.035);
  --bg-glass: rgba(17, 28, 51, 0.85);
  --bg-input: var(--input-background);

  --accent-cyan: var(--accent);
  --accent-cyan-rgb: var(--accent-rgb);
  --accent-azure: #38bdf8;
  --accent-blue: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-violet: #a855f7;

  --status-success: var(--success);
  --status-success-rgb: var(--success-rgb);
  --status-warning: var(--warning);
  --status-warning-rgb: var(--warning-rgb);
  --status-danger: var(--danger);
  --status-danger-rgb: var(--danger-rgb);
  --status-info: var(--info);
  --status-info-rgb: var(--info-rgb);

  --border-subtle: var(--border);
  --border-medium: rgba(56, 189, 248, 0.25);
  --divider-color: rgba(255, 255, 255, 0.08);

  /* Typography Stacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Roboto Mono', Menlo, Monaco, Consolas, monospace;

  /* Layout Dimensions */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 60px;

  /* Radii */
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: var(--shadow);
  --shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.75), 0 4px 10px -2px rgba(0, 0, 0, 0.55);
  --shadow-cyan: 0 0 16px rgba(0, 242, 254, 0.22);
  --shadow-blue: 0 0 20px rgba(37, 99, 235, 0.25);

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 14px;
  --space-lg: 20px;
  --space-xl: 28px;

  /* Transitions */
  --transition-fast: 0.14s ease;
  --transition-normal: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-speed: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Hierarchy */
  --z-sidebar: 100;
  --z-topbar: 90;
  --z-popover: 150;
  --z-modal: 200;
  --z-toast: 300;
}

/* ==========================================================================
   3. LIGHT NOC OPERATIONS ENTERPRISE THEME
   High-contrast, crisp borders, true light backgrounds, zero washed-out text
   ========================================================================== */
[data-theme="light"] {
  /* Core Theme Design Tokens (LIGHT THEME) */
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-secondary: #f8fafc;
  --surface-elevated: #ffffff;
  --surface-hover: #f1f5f9;

  --border: #d8e1ec;
  --border-strong: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-disabled: #94a3b8;

  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-rgb: 2, 132, 199;

  --success: #16a34a;
  --success-rgb: 22, 163, 74;
  --warning: #d97706;
  --warning-rgb: 217, 119, 6;
  --danger: #dc2626;
  --danger-rgb: 220, 38, 38;
  --info: #0284c7;
  --info-rgb: 2, 132, 199;

  --input-background: #ffffff;
  --input-border: #cbd5e1;

  --table-header: #f1f5f9;
  --table-row: #ffffff;
  --table-row-hover: #eef6ff;
  --table-row-alt: #f8fafc;

  --chart-grid: #e2e8f0;
  --tooltip-background: #ffffff;
  --tooltip-text: #0f172a;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);

  /* Gauge Background Track */
  --gauge-bg-track: #e2e8f0;

  /* Legacy Aliases in Light Mode */
  --bg-primary: var(--background);
  --bg-secondary: var(--surface-secondary);
  --bg-surface: var(--surface);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-subtle: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.98);
  --bg-input: var(--input-background);

  --accent-cyan: var(--accent);
  --accent-cyan-rgb: var(--accent-rgb);
  --accent-azure: #0369a1;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-violet: #9333ea;

  --status-success: var(--success);
  --status-success-rgb: var(--success-rgb);
  --status-warning: var(--warning);
  --status-warning-rgb: var(--warning-rgb);
  --status-danger: var(--danger);
  --status-danger-rgb: var(--danger-rgb);
  --status-info: var(--info);
  --status-info-rgb: var(--info-rgb);

  --border-subtle: var(--border);
  --border-medium: #cbd5e1;
  --divider-color: #e2e8f0;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: var(--shadow);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  --shadow-cyan: 0 0 10px rgba(2, 132, 199, 0.15);
  --shadow-blue: 0 0 12px rgba(37, 99, 235, 0.12);
}

/* Accent Color Variations */
[data-accent="blue"] {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-rgb: 37, 99, 235;
  --accent-cyan: #2563eb;
  --accent-azure: #3b82f6;
  --border-strong: rgba(37, 99, 235, 0.5);
  --shadow-cyan: 0 0 15px rgba(37, 99, 235, 0.25);
}

[data-accent="violet"] {
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-rgb: 139, 92, 246;
  --accent-cyan: #8b5cf6;
  --accent-azure: #a855f7;
  --border-strong: rgba(139, 92, 246, 0.5);
  --shadow-cyan: 0 0 15px rgba(139, 92, 246, 0.25);
}

/* Compact UI Density */
[data-density="compact"] {
  --space-xs: 2px;
  --space-sm: 6px;
  --space-md: 10px;
  --space-lg: 14px;
  --space-xl: 20px;
}

[data-density="compact"] .kpi-card {
  padding: 10px 12px;
  min-height: 74px;
}

[data-density="compact"] .vortex-table td,
[data-density="compact"] .vortex-table th {
  padding: 6px 10px;
}

/* Reduced Motion Mode */
[data-reduce-motion="true"] *,
[data-reduce-motion="true"] *::before,
[data-reduce-motion="true"] *::after {
  animation-duration: 0.001s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001s !important;
}

/* ==========================================================================
   4. OCEAN BLUE THEME
   Deep navy backgrounds with vibrant cyan/blue accents
   ========================================================================== */
[data-theme="ocean"] {
  --background: #040d1a;
  --surface: #0a192f;
  --surface-secondary: #071324;
  --surface-elevated: #0f2442;
  --surface-hover: #16325c;

  --border: rgba(56, 189, 248, 0.22);
  --border-strong: #00e5ff;

  --text-primary: #f0f9ff;
  --text-secondary: #bae6fd;
  --text-muted: #7dd3fc;
  --text-disabled: #38bdf8;

  --accent: #00e5ff;
  --accent-hover: #38bdf8;
  --accent-rgb: 0, 229, 255;

  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --danger: #ef4444;
  --danger-rgb: 239, 68, 68;
  --info: #0ea5e9;
  --info-rgb: 14, 165, 233;

  --input-background: #07162c;
  --input-border: rgba(56, 189, 248, 0.35);

  --table-header: #071324;
  --table-row: #0a192f;
  --table-row-hover: #16325c;
  --table-row-alt: #0c203b;

  --chart-grid: rgba(125, 211, 252, 0.1);
  --tooltip-background: #071324;
  --tooltip-text: #f0f9ff;
  --gauge-bg-track: #0f2442;
  --shadow: 0 4px 16px -2px rgba(2, 6, 23, 0.7);

  --bg-primary: var(--background);
  --bg-secondary: var(--surface-secondary);
  --bg-surface: var(--surface);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-subtle: rgba(56, 189, 248, 0.05);
  --bg-glass: rgba(15, 36, 66, 0.88);
  --bg-input: var(--input-background);
  --accent-cyan: var(--accent);
  --accent-cyan-rgb: var(--accent-rgb);
  --accent-azure: #38bdf8;
  --border-subtle: var(--border);
  --border-medium: rgba(56, 189, 248, 0.32);
}

/* ==========================================================================
   5. SLATE GRAPHITE THEME
   Charcoal and slate backgrounds with restrained neutral accents
   ========================================================================== */
[data-theme="slate"] {
  --background: #0e1117;
  --surface: #161b22;
  --surface-secondary: #12161d;
  --surface-elevated: #1f242c;
  --surface-hover: #282e38;

  --border: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(203, 213, 225, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-disabled: #64748b;

  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-rgb: 56, 189, 248;

  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --danger: #ef4444;
  --danger-rgb: 239, 68, 68;
  --info: #0ea5e9;
  --info-rgb: 14, 165, 233;

  --input-background: #12151c;
  --input-border: rgba(148, 163, 184, 0.3);

  --table-header: #12161d;
  --table-row: #161b22;
  --table-row-hover: #282e38;
  --table-row-alt: #1a1f27;

  --chart-grid: rgba(255, 255, 255, 0.08);
  --tooltip-background: #12161d;
  --tooltip-text: #f8fafc;
  --gauge-bg-track: #1f242c;
  --shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.65);

  --bg-primary: var(--background);
  --bg-secondary: var(--surface-secondary);
  --bg-surface: var(--surface);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-subtle: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(22, 27, 34, 0.9);
  --bg-input: var(--input-background);
  --accent-cyan: var(--accent);
  --accent-cyan-rgb: var(--accent-rgb);
  --accent-azure: #60a5fa;
  --border-subtle: var(--border);
  --border-medium: rgba(148, 163, 184, 0.3);
}

/* ==========================================================================
   6. HIGH CONTRAST THEME
   Pure black background, crisp white borders, high-visibility contrast
   ========================================================================== */
[data-theme="high-contrast"] {
  --background: #000000;
  --surface: #0a0a0a;
  --surface-secondary: #000000;
  --surface-elevated: #111111;
  --surface-hover: #222222;

  --border: #555555;
  --border-strong: #00ffff;

  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #d4d4d4;
  --text-disabled: #888888;

  --accent: #00ffff;
  --accent-hover: #ffffff;
  --accent-rgb: 0, 255, 255;

  --success: #10b981;
  --success-rgb: 16, 185, 129;
  --warning: #f59e0b;
  --warning-rgb: 245, 158, 11;
  --danger: #ef4444;
  --danger-rgb: 239, 68, 68;
  --info: #00ffff;
  --info-rgb: 0, 255, 255;

  --input-background: #000000;
  --input-border: #ffffff;

  --table-header: #141414;
  --table-row: #000000;
  --table-row-hover: #242424;
  --table-row-alt: #0a0a0a;

  --chart-grid: rgba(255, 255, 255, 0.3);
  --tooltip-background: #000000;
  --tooltip-text: #ffffff;
  --gauge-bg-track: #2a2a2a;
  --shadow: 0 0 0 1px #ffffff;

  --bg-primary: var(--background);
  --bg-secondary: var(--surface-secondary);
  --bg-surface: var(--surface);
  --bg-card: var(--surface-elevated);
  --bg-card-hover: var(--surface-hover);
  --bg-subtle: #111111;
  --bg-glass: rgba(0, 0, 0, 0.95);
  --bg-input: var(--input-background);
  --accent-cyan: var(--accent);
  --accent-cyan-rgb: var(--accent-rgb);
  --accent-azure: #00ffff;
  --border-subtle: #555555;
  --border-medium: #ffffff;
}

[data-theme="high-contrast"] .card,
[data-theme="high-contrast"] .kpi-card,
[data-theme="high-contrast"] .vortex-table,
[data-theme="high-contrast"] .form-input,
[data-theme="high-contrast"] .form-select,
[data-theme="high-contrast"] .btn {
  border-width: 1.5px !important;
  border-color: #ffffff !important;
}

[data-theme="high-contrast"] .btn-primary {
  background: #00ffff !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   7. DISPLAY FONT SIZE CONTROL & TYPOGRAPHY SCALING
   Universal, responsive typography scaling for VORTEX-SDN.
   Preserves visual hierarchy, layout alignment, and container proportions.
   ========================================================================== */

:root {
  --font-scale: 1;
  --font-size-base: 13.5px;
  --font-size-xs: 10px;
  --font-size-sm: 11.5px;
  --font-size-md: 13.5px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
}

[data-font-size="small"] {
  --font-scale: 0.88;
  --font-size-base: 12px;
  --font-size-xs: 9px;
  --font-size-sm: 10.5px;
  --font-size-md: 12px;
  --font-size-lg: 14px;
  --font-size-xl: 17.5px;
  --font-size-2xl: 21px;
}
[data-font-size="small"],
[data-font-size="small"] body {
  font-size: 12px;
}

[data-font-size="default"] {
  --font-scale: 1;
  --font-size-base: 13.5px;
  --font-size-xs: 10px;
  --font-size-sm: 11.5px;
  --font-size-md: 13.5px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
}
[data-font-size="default"],
[data-font-size="default"] body {
  font-size: 13.5px;
}

[data-font-size="large"],
[data-font-size="bigger"] {
  --font-scale: 1.125;
  --font-size-base: 15.2px;
  --font-size-xs: 11.5px;
  --font-size-sm: 13px;
  --font-size-md: 15.2px;
  --font-size-lg: 18px;
  --font-size-xl: 22.5px;
  --font-size-2xl: 27px;
}
[data-font-size="large"],
[data-font-size="large"] body,
[data-font-size="bigger"],
[data-font-size="bigger"] body {
  font-size: 15.2px;
}

[data-font-size="xlarge"] {
  --font-scale: 1.25;
  --font-size-base: 17px;
  --font-size-xs: 12.5px;
  --font-size-sm: 14.5px;
  --font-size-md: 17px;
  --font-size-lg: 20px;
  --font-size-xl: 25px;
  --font-size-2xl: 30px;
}
[data-font-size="xlarge"],
[data-font-size="xlarge"] body {
  font-size: 17px;
}

/* --------------------------------------------------------------------------
   SMALL (COMPACT VIEW)
   -------------------------------------------------------------------------- */
/* Headings & Titles */
[data-font-size="small"] h1,
[data-font-size="small"] .dashboard-hero-header h1,
[data-font-size="small"] .hero-title-badge-row h1,
[data-font-size="small"] .hero-brand-name,
[data-font-size="small"] .view-title { font-size: 17.5px !important; }

[data-font-size="small"] h2,
[data-font-size="small"] .section-title,
[data-font-size="small"] .settings-section-title,
[data-font-size="small"] .login-card-header h2,
[data-font-size="small"] .modal-title { font-size: 14px !important; }

[data-font-size="small"] h3,
[data-font-size="small"] .card-title,
[data-font-size="small"] .panel-title,
[data-font-size="small"] .queue-title,
[data-font-size="small"] .hero-feature-title,
[data-font-size="small"] .settings-content-panel h3 { font-size: 12px !important; }

[data-font-size="small"] h4,
[data-font-size="small"] h5,
[data-font-size="small"] h6,
[data-font-size="small"] .brand-title { font-size: 11.5px !important; }

/* Body & Descriptions */
[data-font-size="small"] p,
[data-font-size="small"] .card-body,
[data-font-size="small"] .description,
[data-font-size="small"] .settings-section-desc,
[data-font-size="small"] .login-card-desc,
[data-font-size="small"] .hero-subtitle,
[data-font-size="small"] .hero-feature-desc,
[data-font-size="small"] .timeline-step-event,
[data-font-size="small"] .chat-message { font-size: 12px !important; line-height: 1.45; }

[data-font-size="small"] .card-subtitle,
[data-font-size="small"] .subtext,
[data-font-size="small"] .info-text,
[data-font-size="small"] .text-muted,
[data-font-size="small"] .hero-brand-tagline,
[data-font-size="small"] .text-secondary { font-size: 10px !important; }

/* Navigation & Topbar */
[data-font-size="small"] .nav-item,
[data-font-size="small"] .nav-label,
[data-font-size="small"] .settings-tab-btn,
[data-font-size="small"] .settings-nav-item { font-size: 11px !important; }

[data-font-size="small"] .nav-section-title { font-size: 8px !important; }
[data-font-size="small"] .brand-subtitle { font-size: 7.5px !important; }
[data-font-size="small"] .topbar-breadcrumb,
[data-font-size="small"] .breadcrumb-current,
[data-font-size="small"] .search-trigger-btn,
[data-font-size="small"] .topbar-clock,
[data-font-size="small"] .dynamic-user-name { font-size: 11.5px !important; }
[data-font-size="small"] .breadcrumb-root { font-size: 10.5px !important; }

/* KPI Metrics & Stats */
[data-font-size="small"] .kpi-value { font-size: 20px !important; }
[data-font-size="small"] .kpi-label,
[data-font-size="small"] .stat-label,
[data-font-size="small"] .metric-label,
[data-font-size="small"] .queue-stat-label,
[data-font-size="small"] .topo-prop-label,
[data-font-size="small"] .inc-prop-label { font-size: 9.5px !important; }
[data-font-size="small"] .kpi-bottom,
[data-font-size="small"] .stat-subtext { font-size: 9px !important; }
[data-font-size="small"] .kpi-trend { font-size: 8px !important; }
[data-font-size="small"] .inc-prop-val,
[data-font-size="small"] .stat-value,
[data-font-size="small"] .queue-stat-value,
[data-font-size="small"] .topo-prop-value,
[data-font-size="small"] .metric-value { font-size: 12px !important; }

/* Tables & Grids */
[data-font-size="small"] .vortex-table,
[data-font-size="small"] .vortex-table tbody td { font-size: 11px !important; padding: 6px 10px; }
[data-font-size="small"] .vortex-table thead th { font-size: 10px !important; padding: 7px 10px; }
[data-font-size="small"] .vortex-table tbody td.mono { font-size: 10px !important; }
[data-font-size="small"] .table-search-box input,
[data-font-size="small"] .select-filter,
[data-font-size="small"] .table-pagination button { font-size: 11px !important; }

/* Forms & Inputs */
[data-font-size="small"] label,
[data-font-size="small"] .form-label { font-size: 11px !important; }
[data-font-size="small"] .form-input,
[data-font-size="small"] .form-select,
[data-font-size="small"] input,
[data-font-size="small"] select,
[data-font-size="small"] textarea { font-size: 11.5px !important; }
[data-font-size="small"] .toggle-switch-label { font-size: 11.5px !important; }

/* Buttons & Badges */
[data-font-size="small"] .btn { font-size: 11px !important; padding: 5px 10px; }
[data-font-size="small"] .btn-sm { font-size: 10px !important; padding: 3px 7px; }
[data-font-size="small"] .badge,
[data-font-size="small"] .severity-badge,
[data-font-size="small"] .status-badge,
[data-font-size="small"] .traffic-badge,
[data-font-size="small"] .role-badge,
[data-font-size="small"] .hero-operator-pill,
[data-font-size="small"] .rca-level-badge,
[data-font-size="small"] .qos-policy-tag,
[data-font-size="small"] .topo-stat-badge { font-size: 9.5px !important; padding: 1.5px 6px; }

/* Modals, Dropdowns & Notifications */
[data-font-size="small"] .modal-box,
[data-font-size="small"] .modal-body { font-size: 12px !important; }
[data-font-size="small"] .dropdown-item,
[data-font-size="small"] .notif-item-desc { font-size: 11px !important; }
[data-font-size="small"] .notif-item-title { font-size: 11.5px !important; }
[data-font-size="small"] .notif-time,
[data-font-size="small"] .form-helper { font-size: 9.5px !important; }

/* --------------------------------------------------------------------------
   LARGE & BIGGER (ENHANCED READABILITY)
   -------------------------------------------------------------------------- */
/* Headings & Titles */
[data-font-size="large"] h1,
[data-font-size="bigger"] h1,
[data-font-size="large"] .dashboard-hero-header h1,
[data-font-size="bigger"] .dashboard-hero-header h1,
[data-font-size="large"] .hero-title-badge-row h1,
[data-font-size="bigger"] .hero-title-badge-row h1,
[data-font-size="large"] .hero-brand-name,
[data-font-size="bigger"] .hero-brand-name,
[data-font-size="large"] .view-title,
[data-font-size="bigger"] .view-title { font-size: 22.5px !important; }

[data-font-size="large"] h2,
[data-font-size="bigger"] h2,
[data-font-size="large"] .section-title,
[data-font-size="bigger"] .section-title,
[data-font-size="large"] .settings-section-title,
[data-font-size="bigger"] .settings-section-title,
[data-font-size="large"] .login-card-header h2,
[data-font-size="bigger"] .login-card-header h2,
[data-font-size="large"] .modal-title,
[data-font-size="bigger"] .modal-title { font-size: 18px !important; }

[data-font-size="large"] h3,
[data-font-size="bigger"] h3,
[data-font-size="large"] .card-title,
[data-font-size="bigger"] .card-title,
[data-font-size="large"] .panel-title,
[data-font-size="bigger"] .panel-title,
[data-font-size="large"] .queue-title,
[data-font-size="bigger"] .queue-title,
[data-font-size="large"] .hero-feature-title,
[data-font-size="bigger"] .hero-feature-title,
[data-font-size="large"] .settings-content-panel h3,
[data-font-size="bigger"] .settings-content-panel h3 { font-size: 15px !important; }

[data-font-size="large"] h4,
[data-font-size="bigger"] h4,
[data-font-size="large"] h5,
[data-font-size="bigger"] h5,
[data-font-size="large"] h6,
[data-font-size="bigger"] h6,
[data-font-size="large"] .brand-title,
[data-font-size="bigger"] .brand-title { font-size: 14px !important; }

/* Body & Descriptions */
[data-font-size="large"] p,
[data-font-size="bigger"] p,
[data-font-size="large"] .card-body,
[data-font-size="bigger"] .card-body,
[data-font-size="large"] .description,
[data-font-size="bigger"] .description,
[data-font-size="large"] .settings-section-desc,
[data-font-size="bigger"] .settings-section-desc,
[data-font-size="large"] .login-card-desc,
[data-font-size="bigger"] .login-card-desc,
[data-font-size="large"] .hero-subtitle,
[data-font-size="bigger"] .hero-subtitle,
[data-font-size="large"] .hero-feature-desc,
[data-font-size="bigger"] .hero-feature-desc,
[data-font-size="large"] .timeline-step-event,
[data-font-size="bigger"] .timeline-step-event,
[data-font-size="large"] .chat-message,
[data-font-size="bigger"] .chat-message { font-size: 15px !important; line-height: 1.55; }

[data-font-size="large"] .card-subtitle,
[data-font-size="bigger"] .card-subtitle,
[data-font-size="large"] .subtext,
[data-font-size="bigger"] .subtext,
[data-font-size="large"] .info-text,
[data-font-size="bigger"] .info-text,
[data-font-size="large"] .text-muted,
[data-font-size="bigger"] .text-muted,
[data-font-size="large"] .hero-brand-tagline,
[data-font-size="bigger"] .hero-brand-tagline,
[data-font-size="large"] .text-secondary,
[data-font-size="bigger"] .text-secondary { font-size: 12.5px !important; }

/* Navigation & Topbar */
[data-font-size="large"] .nav-item,
[data-font-size="bigger"] .nav-item,
[data-font-size="large"] .nav-label,
[data-font-size="bigger"] .nav-label,
[data-font-size="large"] .settings-tab-btn,
[data-font-size="bigger"] .settings-tab-btn,
[data-font-size="large"] .settings-nav-item,
[data-font-size="bigger"] .settings-nav-item { font-size: 13.5px !important; padding: 7px 11px; }

[data-font-size="large"] .nav-section-title,
[data-font-size="bigger"] .nav-section-title { font-size: 10px !important; }
[data-font-size="large"] .brand-subtitle,
[data-font-size="bigger"] .brand-subtitle { font-size: 9.5px !important; }
[data-font-size="large"] .topbar-breadcrumb,
[data-font-size="bigger"] .topbar-breadcrumb,
[data-font-size="large"] .breadcrumb-current,
[data-font-size="bigger"] .breadcrumb-current,
[data-font-size="large"] .search-trigger-btn,
[data-font-size="bigger"] .search-trigger-btn,
[data-font-size="large"] .topbar-clock,
[data-font-size="bigger"] .topbar-clock,
[data-font-size="large"] .dynamic-user-name,
[data-font-size="bigger"] .dynamic-user-name { font-size: 14px !important; }
[data-font-size="large"] .breadcrumb-root,
[data-font-size="bigger"] .breadcrumb-root { font-size: 12.5px !important; }

/* KPI Metrics & Stats */
[data-font-size="large"] .kpi-value,
[data-font-size="bigger"] .kpi-value { font-size: 26px !important; }
[data-font-size="large"] .kpi-label,
[data-font-size="bigger"] .kpi-label,
[data-font-size="large"] .stat-label,
[data-font-size="bigger"] .stat-label,
[data-font-size="large"] .metric-label,
[data-font-size="bigger"] .metric-label,
[data-font-size="large"] .queue-stat-label,
[data-font-size="bigger"] .queue-stat-label,
[data-font-size="large"] .topo-prop-label,
[data-font-size="bigger"] .topo-prop-label,
[data-font-size="large"] .inc-prop-label,
[data-font-size="bigger"] .inc-prop-label { font-size: 12px !important; }
[data-font-size="large"] .kpi-bottom,
[data-font-size="bigger"] .kpi-bottom,
[data-font-size="large"] .stat-subtext,
[data-font-size="bigger"] .stat-subtext { font-size: 11px !important; }
[data-font-size="large"] .kpi-trend,
[data-font-size="bigger"] .kpi-trend { font-size: 10px !important; }
[data-font-size="large"] .inc-prop-val,
[data-font-size="bigger"] .inc-prop-val,
[data-font-size="large"] .stat-value,
[data-font-size="bigger"] .stat-value,
[data-font-size="large"] .queue-stat-value,
[data-font-size="bigger"] .queue-stat-value,
[data-font-size="large"] .topo-prop-value,
[data-font-size="bigger"] .topo-prop-value,
[data-font-size="large"] .metric-value,
[data-font-size="bigger"] .metric-value { font-size: 15px !important; }

/* Tables & Grids */
[data-font-size="large"] .vortex-table,
[data-font-size="bigger"] .vortex-table,
[data-font-size="large"] .vortex-table tbody td,
[data-font-size="bigger"] .vortex-table tbody td { font-size: 13.5px !important; padding: 10px 14px; }
[data-font-size="large"] .vortex-table thead th,
[data-font-size="bigger"] .vortex-table thead th { font-size: 12px !important; padding: 11px 14px; }
[data-font-size="large"] .vortex-table tbody td.mono,
[data-font-size="bigger"] .vortex-table tbody td.mono { font-size: 12.5px !important; }
[data-font-size="large"] .table-search-box input,
[data-font-size="bigger"] .table-search-box input,
[data-font-size="large"] .select-filter,
[data-font-size="bigger"] .select-filter,
[data-font-size="large"] .table-pagination button,
[data-font-size="bigger"] .table-pagination button { font-size: 13.5px !important; }

/* Forms & Inputs */
[data-font-size="large"] label,
[data-font-size="bigger"] label,
[data-font-size="large"] .form-label,
[data-font-size="bigger"] .form-label { font-size: 13.5px !important; }
[data-font-size="large"] .form-input,
[data-font-size="bigger"] .form-input,
[data-font-size="large"] .form-select,
[data-font-size="bigger"] .form-select,
[data-font-size="large"] input,
[data-font-size="bigger"] input,
[data-font-size="large"] select,
[data-font-size="bigger"] select,
[data-font-size="large"] textarea,
[data-font-size="bigger"] textarea { font-size: 14px !important; padding: 9px 13px; min-height: 40px; }
[data-font-size="large"] .toggle-switch-label,
[data-font-size="bigger"] .toggle-switch-label { font-size: 14px !important; }

/* Buttons & Badges */
[data-font-size="large"] .btn,
[data-font-size="bigger"] .btn { font-size: 13.5px !important; padding: 8px 16px; }
[data-font-size="large"] .btn-sm,
[data-font-size="bigger"] .btn-sm { font-size: 12px !important; padding: 4px 10px; }
[data-font-size="large"] .badge,
[data-font-size="bigger"] .badge,
[data-font-size="large"] .severity-badge,
[data-font-size="bigger"] .severity-badge,
[data-font-size="large"] .status-badge,
[data-font-size="bigger"] .status-badge,
[data-font-size="large"] .traffic-badge,
[data-font-size="bigger"] .traffic-badge,
[data-font-size="large"] .role-badge,
[data-font-size="bigger"] .role-badge,
[data-font-size="large"] .hero-operator-pill,
[data-font-size="bigger"] .hero-operator-pill,
[data-font-size="large"] .rca-level-badge,
[data-font-size="bigger"] .rca-level-badge,
[data-font-size="large"] .qos-policy-tag,
[data-font-size="bigger"] .qos-policy-tag,
[data-font-size="large"] .topo-stat-badge,
[data-font-size="bigger"] .topo-stat-badge { font-size: 11.5px !important; padding: 3px 9px; }

/* Modals, Dropdowns & Notifications */
[data-font-size="large"] .modal-box,
[data-font-size="bigger"] .modal-box,
[data-font-size="large"] .modal-body,
[data-font-size="bigger"] .modal-body { font-size: 15px !important; }
[data-font-size="large"] .dropdown-item,
[data-font-size="bigger"] .dropdown-item,
[data-font-size="large"] .notif-item-desc,
[data-font-size="bigger"] .notif-item-desc { font-size: 13.5px !important; }
[data-font-size="large"] .notif-item-title,
[data-font-size="bigger"] .notif-item-title { font-size: 14px !important; }
[data-font-size="large"] .notif-time,
[data-font-size="bigger"] .notif-time,
[data-font-size="large"] .form-helper,
[data-font-size="bigger"] .form-helper { font-size: 11.5px !important; }

/* --------------------------------------------------------------------------
   EXTRA LARGE (HIGH VISIBILITY)
   -------------------------------------------------------------------------- */
/* Headings & Titles */
[data-font-size="xlarge"] h1,
[data-font-size="xlarge"] .dashboard-hero-header h1,
[data-font-size="xlarge"] .hero-title-badge-row h1,
[data-font-size="xlarge"] .hero-brand-name,
[data-font-size="xlarge"] .view-title { font-size: 25px !important; }

[data-font-size="xlarge"] h2,
[data-font-size="xlarge"] .section-title,
[data-font-size="xlarge"] .settings-section-title,
[data-font-size="xlarge"] .login-card-header h2,
[data-font-size="xlarge"] .modal-title { font-size: 20px !important; }

[data-font-size="xlarge"] h3,
[data-font-size="xlarge"] .card-title,
[data-font-size="xlarge"] .panel-title,
[data-font-size="xlarge"] .queue-title,
[data-font-size="xlarge"] .hero-feature-title,
[data-font-size="xlarge"] .settings-content-panel h3 { font-size: 16.5px !important; }

[data-font-size="xlarge"] h4,
[data-font-size="xlarge"] h5,
[data-font-size="xlarge"] h6,
[data-font-size="xlarge"] .brand-title { font-size: 15px !important; }

/* Body & Descriptions */
[data-font-size="xlarge"] p,
[data-font-size="xlarge"] .card-body,
[data-font-size="xlarge"] .description,
[data-font-size="xlarge"] .settings-section-desc,
[data-font-size="xlarge"] .login-card-desc,
[data-font-size="xlarge"] .hero-subtitle,
[data-font-size="xlarge"] .hero-feature-desc,
[data-font-size="xlarge"] .timeline-step-event,
[data-font-size="xlarge"] .chat-message { font-size: 16.5px !important; line-height: 1.6; }

[data-font-size="xlarge"] .card-subtitle,
[data-font-size="xlarge"] .subtext,
[data-font-size="xlarge"] .info-text,
[data-font-size="xlarge"] .text-muted,
[data-font-size="xlarge"] .hero-brand-tagline,
[data-font-size="xlarge"] .text-secondary { font-size: 13.5px !important; }

/* Navigation & Topbar */
[data-font-size="xlarge"] .nav-item,
[data-font-size="xlarge"] .nav-label,
[data-font-size="xlarge"] .settings-tab-btn,
[data-font-size="xlarge"] .settings-nav-item { font-size: 14.5px !important; padding: 8px 12px; }

[data-font-size="xlarge"] .nav-section-title { font-size: 11px !important; }
[data-font-size="xlarge"] .brand-subtitle { font-size: 10px !important; }
[data-font-size="xlarge"] .topbar-breadcrumb,
[data-font-size="xlarge"] .breadcrumb-current,
[data-font-size="xlarge"] .search-trigger-btn,
[data-font-size="xlarge"] .topbar-clock,
[data-font-size="xlarge"] .dynamic-user-name { font-size: 15px !important; }
[data-font-size="xlarge"] .breadcrumb-root { font-size: 13.5px !important; }

/* KPI Metrics & Stats */
[data-font-size="xlarge"] .kpi-value { font-size: 28px !important; }
[data-font-size="xlarge"] .kpi-label,
[data-font-size="xlarge"] .stat-label,
[data-font-size="xlarge"] .metric-label,
[data-font-size="xlarge"] .queue-stat-label,
[data-font-size="xlarge"] .topo-prop-label,
[data-font-size="xlarge"] .inc-prop-label { font-size: 13px !important; }
[data-font-size="xlarge"] .kpi-bottom,
[data-font-size="xlarge"] .stat-subtext { font-size: 12px !important; }
[data-font-size="xlarge"] .kpi-trend { font-size: 11px !important; }
[data-font-size="xlarge"] .inc-prop-val,
[data-font-size="xlarge"] .stat-value,
[data-font-size="xlarge"] .queue-stat-value,
[data-font-size="xlarge"] .topo-prop-value,
[data-font-size="xlarge"] .metric-value { font-size: 16.5px !important; }

/* Tables & Grids */
[data-font-size="xlarge"] .vortex-table,
[data-font-size="xlarge"] .vortex-table tbody td { font-size: 14.5px !important; padding: 11px 15px; }
[data-font-size="xlarge"] .vortex-table thead th { font-size: 13px !important; padding: 12px 15px; }
[data-font-size="xlarge"] .vortex-table tbody td.mono { font-size: 13.5px !important; }
[data-font-size="xlarge"] .table-search-box input,
[data-font-size="xlarge"] .select-filter,
[data-font-size="xlarge"] .table-pagination button { font-size: 14.5px !important; }

/* Forms & Inputs */
[data-font-size="xlarge"] label,
[data-font-size="xlarge"] .form-label { font-size: 14.5px !important; }
[data-font-size="xlarge"] .form-input,
[data-font-size="xlarge"] .form-select,
[data-font-size="xlarge"] input,
[data-font-size="xlarge"] select,
[data-font-size="xlarge"] textarea { font-size: 15.5px !important; padding: 10px 14px; min-height: 44px; }
[data-font-size="xlarge"] .toggle-switch-label { font-size: 15px !important; }

/* Buttons & Badges */
[data-font-size="xlarge"] .btn { font-size: 14.5px !important; padding: 9px 18px; }
[data-font-size="xlarge"] .btn-sm { font-size: 13px !important; padding: 5px 11px; }
[data-font-size="xlarge"] .badge,
[data-font-size="xlarge"] .severity-badge,
[data-font-size="xlarge"] .status-badge,
[data-font-size="xlarge"] .traffic-badge,
[data-font-size="xlarge"] .role-badge,
[data-font-size="xlarge"] .hero-operator-pill,
[data-font-size="xlarge"] .rca-level-badge,
[data-font-size="xlarge"] .qos-policy-tag,
[data-font-size="xlarge"] .topo-stat-badge { font-size: 12.5px !important; padding: 3.5px 10px; }

/* Modals, Dropdowns & Notifications */
[data-font-size="xlarge"] .modal-box,
[data-font-size="xlarge"] .modal-body { font-size: 16.5px !important; }
[data-font-size="xlarge"] .dropdown-item,
[data-font-size="xlarge"] .notif-item-desc { font-size: 14.5px !important; }
[data-font-size="xlarge"] .notif-item-title { font-size: 15.5px !important; }
[data-font-size="xlarge"] .notif-time,
[data-font-size="xlarge"] .form-helper { font-size: 12.5px !important; }

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT ACCOMMODATIONS FOR SCALED FONTS
   -------------------------------------------------------------------------- */
[data-font-size="large"] .kpi-card,
[data-font-size="bigger"] .kpi-card,
[data-font-size="xlarge"] .kpi-card {
  min-height: 106px;
  height: auto;
}

[data-font-size="large"] .card-header,
[data-font-size="bigger"] .card-header,
[data-font-size="xlarge"] .card-header {
  flex-wrap: wrap;
  gap: 8px;
}

[data-font-size="large"] .breadcrumb-current,
[data-font-size="bigger"] .breadcrumb-current,
[data-font-size="xlarge"] .breadcrumb-current {
  max-width: 260px;
}

[data-font-size="large"] .search-trigger-btn,
[data-font-size="bigger"] .search-trigger-btn,
[data-font-size="xlarge"] .search-trigger-btn {
  height: 44px;
}

[data-font-size="large"] .modal-box,
[data-font-size="bigger"] .modal-box,
[data-font-size="xlarge"] .modal-box {
  max-height: 94vh;
  overflow-y: auto;
}

/* Sidebar scrollability so items are never cut off */
.sidebar-nav {
  overflow-y: auto !important;
  overflow-x: hidden;
  scrollbar-width: thin;
}

/* Settings preview card */
.font-size-preview-box {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  max-width: 450px;
}
.font-size-preview-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.font-size-preview-sample {
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
  transition: font-size 0.15s ease;
}
