/* GAD Chatbot — NovaSignal Edition. Self-contained: hardcodes the same
   brand tokens as the NovaSignal AI theme so it looks correct even if
   used on a different theme. */
:root {
  --gadns-void: #05070D;
  --gadns-navy: #0B1120;
  --gadns-signal: #00E5C7;
  --gadns-pulse: #FF6B35;
  --gadns-border: rgba(0, 229, 199, 0.16);
  --gadns-slate: #8B96A8;
}

.gadns-widget { position: fixed; right: 22px; bottom: 22px; z-index: 200; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

.gadns-launcher {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gadns-pulse); color: #fff; font-size: 26px;
  box-shadow: 0 8px 24px -6px rgba(255,107,53,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s; position: relative;
}
.gadns-launcher:hover { transform: scale(1.06); }
.gadns-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gadns-signal); border: 2px solid var(--gadns-void); animation: gadns-blink 2.4s ease-in-out infinite; }
@keyframes gadns-blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.gadns-panel {
  position: absolute; right: 0; bottom: 76px; width: 340px; max-width: calc(100vw - 44px);
  background: var(--gadns-navy); border: 1px solid var(--gadns-border); border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; height: 460px; max-height: 72vh;
  opacity: 0; transform: translateY(12px) scale(0.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; overflow: hidden;
}
.gadns-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.gadns-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--gadns-border); flex-shrink: 0; }
.gadns-who { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 14px; }
.gadns-dot2 { width: 8px; height: 8px; border-radius: 50%; background: var(--gadns-signal); box-shadow: 0 0 8px 1px var(--gadns-signal); }
.gadns-sub { font-size: 11px; color: var(--gadns-slate); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.gadns-close { background: none; border: none; color: var(--gadns-slate); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; }
.gadns-close:hover { color: #fff; }

.gadns-consent { padding: 18px 16px; overflow-y: auto; }
.gadns-consent p { color: var(--gadns-slate); font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; }
.gadns-consent-accept { width: 100%; background: var(--gadns-pulse); color: #fff; border: none; border-radius: 999px; padding: 10px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.gadns-consent-accept:hover { opacity: .92; }

.gadns-log { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.gadns-bubble { max-width: 84%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.gadns-bubble.bot { align-self: flex-start; background: rgba(0,229,199,0.1); border: 1px solid var(--gadns-border); color: var(--gadns-signal); }
.gadns-bubble.user { align-self: flex-end; background: #1B2740; color: #fff; }
.gadns-bubble.gadns-typing { opacity: .6; }

.gadns-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; flex-shrink: 0; }
.gadns-quick button { background: transparent; border: 1px solid var(--gadns-border); color: var(--gadns-slate); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; cursor: pointer; font-family: 'JetBrains Mono', monospace; }
.gadns-quick button:hover { border-color: var(--gadns-signal); color: var(--gadns-signal); }

.gadns-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--gadns-border); flex-shrink: 0; }
.gadns-input { flex: 1; background: #0B1120; border: 1px solid var(--gadns-border); border-radius: 999px; padding: 9px 14px; color: #fff; font-size: 13.5px; }
.gadns-input:focus { outline: none; border-color: var(--gadns-signal); }
.gadns-send { background: var(--gadns-signal); color: var(--gadns-void); border: none; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 15px; flex-shrink: 0; }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  .gadns-widget { right: 14px; bottom: 14px; }
  .gadns-panel { width: calc(100vw - 28px); }
}
