/* ────────────────────────────────────────────────────────────
   SovAI — CSS Overlay
   Injected via nginx sub_filter — no LibreChat fork needed
   ──────────────────────────────────────────────────────────── */

/* ── Tier 1: Typography ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

html,
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

pre,
code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
}

/* ── Privacy Banner (JS-controlled) ─────────────────────────── */
/* Static CSS banner hidden — replaced by sovai-privacy.js */
html.dark body::before {
  display: none !important;
}

#sovai-privacy-banner {
  display: block;
  width: 100%;
  text-align: center;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #00F5D4;
  background: rgba(46, 26, 71, 0.6);
  border-bottom: 1px solid rgba(0, 245, 212, 0.15);
  z-index: 9999;
  position: relative;
  transition: all 0.3s ease;
}

#sovai-privacy-banner[data-enabled="false"] {
  color: #f5c563;
  background: rgba(71, 46, 26, 0.6);
  border-bottom-color: rgba(245, 197, 99, 0.15);
}

/* ── Shield Toggle Button ──────────────────────────────────── */
#sovai-shield {
  position: fixed;
  bottom: 72px;
  left: 16px;
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #00F5D4;
  background: rgba(0, 245, 212, 0.12);
  color: #00F5D4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 245, 212, 0.2);
}

#sovai-shield:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.35);
}

#sovai-shield[data-enabled="false"] {
  border-color: #64748b;
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  box-shadow: 0 2px 12px rgba(100, 116, 139, 0.15);
}

#sovai-shield[data-enabled="false"]:hover {
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.3);
}

/* ── Shield Tooltip ────────────────────────────────────────── */
#sovai-shield-tooltip {
  display: none;
  position: fixed;
  bottom: 118px;
  left: 16px;
  z-index: 10001;
  padding: 8px 12px;
  font-size: 12px;
  max-width: 260px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  pointer-events: none;
}

/* ── Footer Branding ────────────────────────────────────────── */
/* LibreChat footer is div[role=contentinfo] > span > a */
html.dark [role="contentinfo"] span {
  font-size: 0 !important;
  color: transparent !important;
}

html.dark [role="contentinfo"] span::after {
  content: "SovAI — Sovereign AI Platform";
  font-size: 11px !important;
  color: #a0a0a0 !important;
}

html.dark [role="contentinfo"] span a {
  display: none !important;
}