.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background-color: #f9f9fa;
  position: relative;
}

.messages-container {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 100px; /* Make room for input at bottom */
}

.welcome-message {
  margin: auto;
  text-align: center;
  color: #333;
  max-width: 500px;
}

.welcome-message h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.welcome-message p {
  font-size: 16px;
  color: #666;
}

.message {
  display: flex;
  gap: 16px;
  max-width: 80%;
  animation: fadeIn 0.3s ease-out;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-message {
  align-self: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #e2e2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background-color: #e3f2fd;
}

.ai-message .message-avatar {
  background-color: #e8f5e9;
}

.message-content {
  background-color: white;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  min-width: 100px;
}

.user-message .message-content {
  background-color: #1a73e8;
  color: white;
}

.ai-message .message-content {
  background-color: white;
  color: #333;
}

.error-message {
  color: #d32f2f;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Markdown styling */
.message-content h1,
.message-content h2,
.message-content h3 {
  margin-top: 16px;
  margin-bottom: 12px;
}

.message-content p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.message-content code {
  background-color: #f5f5f5;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

.message-content pre {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
}

.message-content blockquote {
  border-left: 4px solid #e0e0e0;
  padding-left: 12px;
  margin-left: 0;
  color: #666;
}

.message-content ul,
.message-content ol {
  margin-left: 20px;
  margin-bottom: 12px;
}

.message-content a {
  color: #1a73e8;
  text-decoration: none;
}

.message-content a:hover {
  text-decoration: underline;
}

.loading-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.03);
  align-self: flex-start;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1a73e8;
  opacity: 0.6;
  animation: pulse 1.4s infinite ease-in-out;
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 