/* General Styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Arial', sans-serif;
  background: #000;
  color: white;
}

#chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Messages Area */
#messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  background: #111;
  box-sizing: border-box;
}

.message-row {
  display: flex;
  align-items: flex-start;
  margin: 10px 0;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.bot {
  justify-content: flex-start;
}

.message {
  max-width: 90%;
  padding: 12px 18px;
  border-radius: 24px;
  line-height: 1.8;
  white-space: pre-wrap;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.message.user-message {
  background: #0079ff;
  color: white;
}

.message.bot-message {
  background: #292929;
  color: white;
}

/* Typing Animation */
.typing-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
}

/* Input Area */
#input-container {
  display: flex;
  padding: 15px;
  background: #111;
  box-sizing: border-box;
  align-items: center;
  gap: 10px;
}

#user-input {
  flex-grow: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #e5e7eb;
  background: #292929;
  border-radius: 24px;
  resize: none;
  overflow-y: hidden;
}

#user-input::placeholder {
  color: #6b6b6b;
}

#send-button {
  padding: 12px 24px;
  background: linear-gradient(to right, #0079ff, #00d4ff);
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#send-button:hover {
  transform: scale(1.05);
}