@import "tailwindcss";

@theme inline {
  --color-lb-darkest: #0b0e11;
  --color-lb-dark: #1a1d23;
  --color-lb-chat: #23272e;
  --color-lb-input: #40444b;
  --color-lb-hover: #2a2d35;
  --color-lb-border: #2f3136;
  --color-lb-text: #dcddde;
  --color-lb-muted: #96989d;
  --color-lb-dim: #72767d;
  --color-lb-accent: #ff6d5a;
  --color-lb-accent-hover: #ff8570;
  --color-lb-green: #3ba55c;
  --color-lb-channel-hover: rgba(255, 109, 90, 0.08);
  --color-lb-channel-active: rgba(255, 109, 90, 0.15);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #0b0e11;
  color: #dcddde;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #1a1d23;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2a2d35;
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth transitions */
.transition-sidebar {
  transition: width 0.2s ease, opacity 0.2s ease;
}

/* Message animations */
@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-message-in {
  animation: messageIn 0.2s ease-out;
}

/* Typing indicator */
@keyframes typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

.typing-dot {
  animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) {
  animation-delay: 0.16s;
}
.typing-dot:nth-child(3) {
  animation-delay: 0.32s;
}

/* Pulse for loading */
@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.animate-pulse-soft {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Thread panel slide-in */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.2s ease-out;
}

/* Markdown prose styles */
.prose-chat {
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.prose-chat p {
  margin: 0.25em 0;
}
.prose-chat p:first-child {
  margin-top: 0;
}
.prose-chat p:last-child {
  margin-bottom: 0;
}
.prose-chat code {
  background: #1a1d23;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  font-size: 0.875em;
  color: #ff6d5a;
}
.prose-chat pre {
  background: #1a1d23;
  padding: 0.75em 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 0.5em 0;
}
.prose-chat pre code {
  background: transparent;
  padding: 0;
  color: #dcddde;
}
.prose-chat ul,
.prose-chat ol {
  margin: 0.35em 0;
  padding-left: 1.5em;
}
.prose-chat li {
  margin: 0.15em 0;
}
.prose-chat blockquote {
  border-left: 3px solid #ff6d5a;
  padding-left: 0.75em;
  margin: 0.5em 0;
  color: #96989d;
}
.prose-chat h1,
.prose-chat h2,
.prose-chat h3 {
  margin: 0.5em 0 0.25em;
  color: #ffffff;
  font-weight: 600;
}
.prose-chat h1 {
  font-size: 1.25em;
}
.prose-chat h2 {
  font-size: 1.125em;
}
.prose-chat h3 {
  font-size: 1em;
}
.prose-chat a {
  color: #ff6d5a;
  text-decoration: underline;
}
.prose-chat a:hover {
  color: #ff8570;
}
.prose-chat table {
  border-collapse: collapse;
  margin: 0.5em 0;
  width: 100%;
}
.prose-chat th,
.prose-chat td {
  border: 1px solid #2f3136;
  padding: 0.35em 0.7em;
  text-align: left;
}
.prose-chat th {
  background: #1a1d23;
  font-weight: 600;
}
.prose-chat hr {
  border: none;
  border-top: 1px solid #2f3136;
  margin: 0.75em 0;
}
