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

:root {
  --foreground-rgb: 0, 0, 0;
  --background-start-rgb: 248, 250, 252;
  --background-end-rgb: 241, 245, 249;
}

body {
  color: rgb(var(--foreground-rgb));
  background: linear-gradient(
      to bottom,
      transparent,
      rgb(var(--background-end-rgb))
    )
    rgb(var(--background-start-rgb));
}

.chat-container {
  height: calc(100vh - 4rem);
}

/* Custom scrollbar for chat messages */
.chat-container ::-webkit-scrollbar {
  width: 6px;
}

.chat-container ::-webkit-scrollbar-track {
  background: transparent;
}

.chat-container ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-container ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ensure text colors are properly applied in chat interface */
.chat-container * {
  color: inherit;
}

/* Force dark text in white backgrounds */
.chat-container .bg-white {
  color: #1e293b;
}

/* Force white text in blue backgrounds */
.chat-container .bg-base-blue {
  color: white;
}