/* chatbot-interface.css */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  background-color: #1a1a1a;
  border: 1px solid #333;
}

.chat-header {
  background-color: #2563eb;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.chat-body {
  height: 350px;
  overflow-y: auto;
  padding: 15px;
  background-color: #121212;
}

.chat-message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 8px;
  max-width: 80%;
  word-break: break-word;
}

.bot-message {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border-left: 3px solid #2563eb;
  align-self: flex-start;
}

.user-message {
  background-color: #2563eb;
  color: white;
  margin-left: auto;
  border-radius: 8px;
  align-self: flex-end;
}

.bot-code-message {
  background-color: #1a1a1a;
  color: #e0e0e0;
  width: 95%;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.code-header {
  background-color: #333;
  color: #e0e0e0;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.bot-code-message pre {
  margin: 0;
  padding: 15px;
  overflow-x: auto;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
}

.bot-code-message code {
  font-family: 'Consolas', 'Monaco', monospace;
  color: #a9b7c6;
}

.bot-image-message {
  background-color: #1a1a1a;
  width: 95%;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.rendering-placeholder {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #e0e0e0;
  background-color: #2a2a2a;
  padding: 20px;
}

.rendering-placeholder .icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.chat-input {
  padding: 15px;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
}

.chat-input input {
  width: calc(100% - 80px);
  padding: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  background-color: #2a2a2a;
  color: #e0e0e0;
}

.chat-input button {
  width: 70px;
  padding: 10px;
  margin-left: 10px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.chat-input button:hover {
  background-color: #1d4ed8;
}

.thinking {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.thinking span {
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #2563eb;
  border-radius: 50%;
  display: inline-block;
  animation: thinking 1.4s infinite ease-in-out both;
}

.thinking span:nth-child(1) {
  animation-delay: -0.32s;
}

.thinking span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes thinking {
  0%, 80%, 100% { 
    transform: scale(0);
  } 40% { 
    transform: scale(1.0);
  }
}
