/**
 * CHANGE LOG
 * -----------------------------------------------------------------------------
 * SEQ                 | AUTHOR                      | DESCRIPTION
 * -----------------------------------------------------------------------------
 * 1 | maintainer@emeraldcoastsystemsgroup.com   | Added near-black high-contrast cockpit theme for standalone chat and embedded API configuration
 */

/* ═══ Black — Onyx High Contrast ═══ */
[data-theme="black"] {
  /* Shared controls use the palette's readable accent ink and native color scheme. */
  --text-on-accent: #111827;
  --bg-primary: #050505;
  --bg-secondary: rgba(10, 10, 10, 0.9);
  --bg-tertiary: rgba(22, 22, 22, 0.8);
  --bg-card: rgba(18, 18, 18, 0.62);
  --bg-card-hover: rgba(28, 28, 28, 0.72);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #fafafa;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --accent-primary: #f5f5f5;
  --accent-primary-hover: #ffffff;
  --accent-gradient: linear-gradient(135deg, #a1a1aa 0%, #d4d4d8 45%, #fafafa 100%);
  --accent-glow: rgba(255, 255, 255, 0.18);
  --status-success: #4ade80;
  --status-active: #93c5fd;
  --status-warning: #fbbf24;
  --status-error: #f87171;
  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-bg-heavy: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 52%);
  --glass-blur: 22px;
  --glass-blur-light: 12px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(255, 255, 255, 0.14);
  --panel-shadow: 0 10px 36px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255,255,255,0.04);
  --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255,255,255,0.04);
  --depth-shadow: 0 26px 70px rgba(0, 0, 0, 0.72);
}

/* Native controls follow this palette even when a page declares a root default. */
html[data-theme="black"] { color-scheme: dark; }
