/* Variables & Modern Design System - CHUCHYISP Telecom Dark & Light Palettes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root,
[data-theme="dark"] {
  /* Colors - Dark NOC Theme */
  --bg-app: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-card-solid: #131d33;
  --bg-sidebar: #0a0f1d;
  --bg-navbar: rgba(10, 15, 29, 0.85);
  --bg-input: #15203b;
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-hover: rgba(255, 255, 255, 0.04);
  --table-th-bg: rgba(255, 255, 255, 0.03);
  --table-hover-bg: rgba(255, 255, 255, 0.025);
  --scrollbar-thumb: rgba(255, 255, 255, 0.12);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(56, 189, 248, 0.15);
  --border-focus: #38bdf8;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accent & Status Colors */
  --accent-cyan: #06b6d4;
  --accent-blue: #0ea5e9;
  --accent-sky: #38bdf8;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;

  --status-online: #10b981;
  --status-online-bg: rgba(16, 185, 129, 0.12);
  --status-warning: #f59e0b;
  --status-warning-bg: rgba(245, 158, 11, 0.12);
  --status-danger: #ef4444;
  --status-danger-bg: rgba(239, 68, 68, 0.12);
  --status-info: #38bdf8;
  --status-info-bg: rgba(56, 189, 248, 0.12);

  /* Shadows & Glows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.35);
  --glow-blue: 0 0 20px rgba(14, 165, 233, 0.25);
  --glow-emerald: 0 0 15px rgba(16, 185, 129, 0.3);

  /* Card Accents */
  --card-top-line: linear-gradient(90deg, transparent, var(--accent-sky), transparent);
  --chart-grid: rgba(255, 255, 255, 0.05);

  /* Spacings & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --sidebar-width: 270px;
  --sidebar-width-collapsed: 72px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Light Mode Theme Palette (Modo Claro Ejecutivo)
   ========================================================================== */
[data-theme="light"] {
  /* Colors - Clean Corporate Light */
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-solid: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.92);
  --bg-input: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-hover: rgba(0, 0, 0, 0.04);
  --table-th-bg: #f8fafc;
  --table-hover-bg: #f1f5f9;
  --scrollbar-thumb: rgba(0, 0, 0, 0.15);

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: #0284c7;

  /* Typography */
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  /* Accent & Status Colors */
  --accent-cyan: #0891b2;
  --accent-blue: #0284c7;
  --accent-sky: #0284c7;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;

  --status-online: #059669;
  --status-online-bg: rgba(5, 150, 105, 0.12);
  --status-warning: #d97706;
  --status-warning-bg: rgba(217, 119, 6, 0.12);
  --status-danger: #dc2626;
  --status-danger-bg: rgba(220, 38, 38, 0.12);
  --status-info: #0284c7;
  --status-info-bg: rgba(2, 132, 199, 0.12);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --glow-cyan: 0 0 15px rgba(8, 145, 178, 0.15);
  --glow-blue: 0 0 20px rgba(2, 132, 199, 0.12);
  --glow-emerald: 0 0 15px rgba(5, 150, 105, 0.15);

  /* Card Accents */
  --card-top-line: linear-gradient(90deg, transparent, var(--accent-sky), transparent);
  --chart-grid: rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 15% 15%, rgba(14, 165, 233, 0.08) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  transition: background-color var(--transition-base), color var(--transition-base);
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(at 15% 15%, rgba(14, 165, 233, 0.06) 0px, transparent 50%),
    radial-gradient(at 85% 25%, rgba(99, 102, 241, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 85%, rgba(6, 182, 212, 0.04) 0px, transparent 50%);
}

/* Smooth theme transitions on key UI components */
.sidebar,
.navbar,
.glass-card,
.stat-card,
.modal-dialog,
.data-table,
.form-input,
.form-select,
.breadcrumb-bar {
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}
