/* ──────────────────────────────────────────────────────────────────────
   Hermes — Proactive Update Notification Styles
   Toast notification + proactive message bubbles inside agent chat.
   ────────────────────────────────────────────────────────────────────── */

/* ── Toast ─────────────────────────────────────────────────────────── */
.hermes-proactive-toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a2e;
  border: 1px solid rgba(124, 77, 255, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 20px rgba(124, 77, 255, 0.15);
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hermes-proactive-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.hermes-proactive-toast.dismissing {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
}

.hermes-proactive-toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c4dff, #536dfe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hermes-pulse 2s ease-in-out infinite;
}

.hermes-proactive-toast-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.hermes-proactive-toast-body {
  flex: 1;
  min-width: 0;
}

.hermes-proactive-toast-body strong {
  display: block;
  color: #e4e4f0;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hermes-proactive-toast-body span {
  color: #9e9eb8;
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hermes-proactive-toast-action {
  flex-shrink: 0;
  background: linear-gradient(135deg, #7c4dff, #536dfe);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hermes-proactive-toast-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(124, 77, 255, 0.4);
}

.hermes-proactive-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #6c6c8a;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
}

.hermes-proactive-toast-close:hover {
  color: #e4e4f0;
}

/* ── Pulse animation for toast icon ─────────────────────────────── */
@keyframes hermes-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 77, 255, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(124, 77, 255, 0); }
}

/* ── Proactive message content inside agent chat bubble ────────── */
.hermes-proactive-msg p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
}

.hermes-proactive-msg p:last-child {
  margin-bottom: 0;
}

.hermes-proactive-msg strong {
  color: var(--foreground);
}

.hermes-proactive-msg ul {
  margin: 6px 0;
  padding-left: 18px;
  list-style: disc;
}

.hermes-proactive-msg li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--foreground);
  margin-bottom: 2px;
}

.hermes-proactive-msg .hermes-proactive-movs {
  list-style: none;
  padding-left: 0;
}

.hermes-proactive-msg .hermes-proactive-movs li {
  padding: 4px 8px;
  background: var(--accent);
  border-left: 2px solid #2563eb;
  border-radius: 0 6px 6px 0;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--foreground);
}

.hermes-proactive-msg .hermes-proactive-list li {
  margin-bottom: 4px;
}

.hermes-proactive-msg .hermes-proactive-list li strong {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
}

/* ── Responsive: stack toast vertically on small screens ────────── */
@media (max-width: 480px) {
  .hermes-proactive-toast {
    right: 12px;
    left: 12px;
    bottom: 80px;
    max-width: none;
  }
}
