/* ==========================================================================
   NivoTools Centralized Pure Dark Theme System
   100% Dark Theme Architecture with Dynamic Admin Tone Customization
   ========================================================================== */

:root,
html,
body {
  --theme-mode: dark;
  --theme-bg: #070a12;
  --theme-accent: #6366f1;
  
  /* Configurable Dark Background Tones (Managed via Admin Settings) */
  --bg-dark: #070a12;
  --bg-primary: #0a0e1a;
  --bg-secondary: #101628;
  --bg-surface: #161e36;
  --bg-surface-glass: rgba(22, 30, 54, 0.85);
  --bg-card: #131b31;
  --bg-card-hover: #1a2542;
  --bg-dropdown: #161e36;
  --bg-input: #0f172a;

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #ffffff;
  --text-white: #ffffff;

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(99, 102, 241, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Primary Brand & Accents */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --accent-alt: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --grad-glow: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --grad-sunset: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  --grad-green: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --grad-cyan: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --grad-orange: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(99, 102, 241, 0.25);

  /* Charts & Checkers */
  --chart-grid: rgba(255, 255, 255, 0.05);
  --chart-tick: #64748b;
  --checker-color: #1e293b;
  --checker-bg: #0f172a;
}

/* Enforce dark styling on body */
body {
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
                    radial-gradient(ellipse 60% 40% at 90% 60%, rgba(6, 182, 212, 0.08), transparent);
}

/* Accessibility focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}