/* GoranMikac AI assistant widget — source-only P1 shell. No endpoint or credentials here. */
:root {
  --gm-ai-bg: #0b1220;
  --gm-ai-surface: #101b2d;
  --gm-ai-border: rgba(148, 163, 184, 0.28);
  --gm-ai-text: #f8fafc;
  --gm-ai-muted: #b8c4d6;
  --gm-ai-accent: #60a5fa;
}

.gm-ai-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.gm-ai-launcher {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 38px;
  padding: .5rem .95rem;
  color: var(--gm-ai-text);
  background: #1d4ed8;
  border: 1px solid rgba(147, 197, 253, .58);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(2, 6, 23, .3);
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
}

.gm-ai-launcher:hover,
.gm-ai-launcher:focus-visible { background: #2563eb; transform: translateY(-1px); }
.gm-ai-launcher:focus-visible,
.gm-ai-close:focus-visible,
.gm-ai-send:focus-visible,
.gm-ai-privacy:focus-visible { outline: 3px solid #bfdbfe; outline-offset: 3px; }

.gm-ai-launcher--float {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 130;
  min-height: 48px;
  padding: .7rem 1rem;
  box-shadow: 0 14px 34px rgba(2, 6, 23, .46);
}

.gm-ai-panel {
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  z-index: 131;
  width: min(390px, calc(100vw - 2rem));
  overflow: hidden;
  color: var(--gm-ai-text);
  background: var(--gm-ai-bg);
  border: 1px solid var(--gm-ai-border);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .62);
}

.gm-ai-panel[hidden] { display: none; }
.gm-ai-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .75rem; border-bottom: 1px solid var(--gm-ai-border); }
.gm-ai-head h2 { margin: 0; font-size: 1rem; line-height: 1.3; }
.gm-ai-head p { margin: .25rem 0 0; color: var(--gm-ai-muted); font-size: .82rem; line-height: 1.4; }
.gm-ai-close { flex: 0 0 auto; width: 34px; height: 34px; color: var(--gm-ai-text); background: transparent; border: 1px solid var(--gm-ai-border); border-radius: 50%; cursor: pointer; font: inherit; }
.gm-ai-body { padding: 1rem; }
.gm-ai-transcript { min-height: 92px; max-height: 220px; overflow-y: auto; margin: 0 0 .8rem; }
.gm-ai-message { margin: 0; padding: .75rem; color: var(--gm-ai-text); background: var(--gm-ai-surface); border-radius: 12px; font-size: .9rem; line-height: 1.45; }
.gm-ai-message--assistant { margin-right: 1.25rem; }
.gm-ai-message--visitor { margin-left: 1.25rem; color: #eff6ff; background: #1d4ed8; }
.gm-ai-send:disabled,
.gm-ai-input:disabled { cursor: wait; opacity: .72; }
.gm-ai-form { display: grid; gap: .65rem; }
.gm-ai-input { width: 100%; min-height: 78px; resize: vertical; padding: .7rem; color: var(--gm-ai-text); background: #0f1a2d; border: 1px solid var(--gm-ai-border); border-radius: 10px; font: inherit; line-height: 1.4; }
.gm-ai-input::placeholder { color: #94a3b8; }
.gm-ai-send { justify-self: start; padding: .6rem .9rem; color: #fff; background: #2563eb; border: 1px solid rgba(147, 197, 253, .58); border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; }
.gm-ai-note { margin: .8rem 0 0; color: var(--gm-ai-muted); font-size: .76rem; line-height: 1.45; }
.gm-ai-privacy { color: #bfdbfe; }

@media (max-width: 720px) {
  .gm-ai-launcher { min-height: 38px; padding: .42rem .72rem; }
  .gm-ai-launcher-label { display: none; }
  .gm-ai-launcher--float { right: 1rem; bottom: 5rem; padding: .75rem .9rem; }
  .gm-ai-panel { position: fixed; top: auto; bottom: 1rem; right: 1rem; left: 1rem; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .gm-ai-launcher { transition: none; }
}
