@import "tailwindcss";

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: Arial, sans-serif;
  background-color: #fff;
  color: #111;
  min-height: 100vh;
}

.inter-font {
  font-family: "Inter", sans-serif;
}

/* Reasoning interface styles */
.reasoning-content .cursor-pointer:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.reasoning-content [data-reasoning-target="arrow"] {
  transition: transform 0.2s ease;
  font-size: 10px;
  line-height: 1;
}

.reasoning-content [data-reasoning-target="content"] {
  transition: opacity 0.3s ease, height 0.3s ease;
  overflow: hidden;
}

/* Chat name update animations */
@keyframes chatNameExit {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0px) brightness(1);
  }
  50% {
    transform: scale(0.95) translateY(-5px);
    filter: blur(1px) brightness(1.2);
  }
  100% {
    opacity: 0;
    transform: scale(0.85) translateY(-10px);
    filter: blur(3px) brightness(1.5);
  }
}

@keyframes chatNameEnter {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(10px) rotateX(10deg);
    filter: blur(3px) brightness(1.5);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) translateY(-2px) rotateX(-5deg);
    filter: blur(1px) brightness(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
    filter: blur(0px) brightness(1);
  }
}

@keyframes shimmer {
  0%, 100% {
    text-shadow: 
      0 0 10px rgba(59, 130, 246, 0.4),
      0 0 20px rgba(59, 130, 246, 0.2);
  }
  50% {
    text-shadow: 
      0 0 20px rgba(59, 130, 246, 0.6),
      0 0 30px rgba(59, 130, 246, 0.4),
      0 0 40px rgba(59, 130, 246, 0.2);
  }
}

.chat-name-exit {
  animation: chatNameExit 0.4s ease-in-out forwards;
  transform-origin: center;
}

.chat-name-enter {
  animation: chatNameEnter 0.6s ease-out forwards, shimmer 0.8s ease-in-out;
  transform-origin: center;
  display: inline-block;
}

/* Ensure the animations work on inline elements */
h1.chat-name-exit,
h1.chat-name-enter,
.breadcrumb-item.chat-name-exit,
.breadcrumb-item.chat-name-enter {
  display: inline-block;
  perspective: 1000px;
}

/* Markdown content styling */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

.prose th,
.prose td {
  border: 1px solid #e5e7eb;
  padding: 0.5em 0.75em;
  text-align: left;
}

.prose th {
  background-color: #f9fafb;
  font-weight: 600;
}

.prose tr:nth-child(even) {
  background-color: #f9fafb;
}

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

.prose li {
  margin: 0.25em 0;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.125em 0.25em;
  border-radius: 0.25em;
  font-family: monospace;
  font-size: 0.9em;
}

.prose pre {
  background-color: #f3f4f6;
  padding: 1em;
  border-radius: 0.5em;
  overflow-x: auto;
  margin: 1em 0;
}

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

.prose blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1em;
  margin: 1em 0;
  color: #6b7280;
  font-style: italic;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  margin: 0.75em 0;
}

/* Typing indicator (3 dots animation) */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94a3b8;
  animation: typing-dot 1.4s infinite;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-dot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}
