/* Custom styles for Agent Builder */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.18s ease-out forwards;
}

/* Chat Markdown Typography */
.prose-chat {
  font-size: 0.9375rem;
  line-height: 1.6;
}
/* Links in chat: look like links (blue, underlined) and never break the layout */
.prose-chat a, .prose a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.prose-chat a:hover, .prose a:hover {
  color: #3730a3;
}
.prose-chat p {
  margin-bottom: 0.5rem;
}
.prose-chat p:last-child {
  margin-bottom: 0;
}
.prose-chat ul, .prose-chat ol {
  margin-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.prose-chat ul {
  list-style-type: disc;
}
.prose-chat ol {
  list-style-type: decimal;
}
.prose-chat pre {
  background-color: #1e293b;
  color: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 0.5rem 0;
}
.prose-chat code {
  background-color: #e2e8f0;
  color: #0f172a;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  font-family: monospace;
}
.prose-chat pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* Toggle Pill Badges */
.badge-autopilot {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #bbf7d0;
}

.badge-supervised {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: #ffedd5;
  color: #c2410c;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #fed7aa;
}

/* Typing cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typing-cursor::after {
  content: '▋';
  margin-left: 2px;
  color: #3b82f6;
  animation: blink 0.9s infinite;
}