@tailwind base;
@tailwind components;
@tailwind utilities;

/* Typing cursor animation */
.typing-cursor::after {
  content: '|';
  display: inline-block;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

.archi {
  font-family: "Megrim", sans-serif;
}

.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Custom styles for markdown content in chat messages */
.chat-message .prose {
  color: inherit;
}

.chat-message .prose p {
  margin: 0;
  line-height: 1.5;
}

.chat-message .prose p + p {
  margin-top: 0.75rem;
}

.chat-message .prose ul,
.chat-message .prose ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.chat-message .prose li {
  margin: 0.25rem 0;
}

.chat-message .prose code {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.chat-message .prose pre {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.75rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.chat-message .prose pre code {
  background-color: transparent;
  padding: 0;
}

.chat-message .prose blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 1rem;
  margin: 0.5rem 0;
  font-style: italic;
  color: #6b7280;
}

.chat-message .prose a {
  color: #3b82f6;
  text-decoration: underline;
}

.chat-message .prose a:hover {
  color: #2563eb;
}

.chat-message .prose strong {
  font-weight: 600;
}

.chat-message .prose em {
  font-style: italic;
}