body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  flex-direction: row;
}

.sidebar {
  background-color: #333;
  color: #fff;
  width: 200px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.sidebar-btn {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin: 10px 0;
  cursor: pointer;
  width: 80%;
  text-align: center;
}

.sidebar-btn:hover {
  background-color: #555;
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container,
.chat-container2 {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 60%;
  max-width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

h1 {
  text-align: center;
  color: #333;
}

.chat-output {
  flex: 1;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  max-height: 400px; /* Add this line to limit the height and enable scrolling */
}

.chat-form {
  display: flex;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.chat-submit {
  padding: 10px 20px;
  border: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.chat-submit:hover {
  background-color: #0056b3;
}

.user-message {
  text-align: right;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #e1ffc7;
  border-radius: 4px;
}

.bot-response {
  text-align: left;
  margin-bottom: 10px;
  padding: 15px;
  background-color: #f1f1f1;
  border-radius: 4px;
  line-height: 1.6;
}

.bot-response p {
  margin: 0 0 10px 0;
  padding: 0;
  line-height: 1.6; /* Adjust line height for better readability */
}

.bot-response p:last-child {
  margin-bottom: 0;
}

.bot-response .definition {
  padding-left: 20px;
  margin: 5px 0;
}

.typing-indicator {
  display: none;
  text-align: left;
  margin-bottom: 10px;
  padding: 10px;
  background-color: #f1f1f1;
  border-radius: 4px;
  font-style: italic;
}

.clear-chat {
  padding: 10px 20px;
  border: none;
  background-color: #dc3545;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

.clear-chat:hover {
  background-color: #c82333;
}

.brand-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.meta-ai {
  background: linear-gradient(45deg, #ff6f61, #ff9a8b);
  color: white;
}

.qwen-ai {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add this line for better readability */
}

.qwen-ai h1 {
  color: white; /* Ensure the heading text color is set to white */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add this line for better readability */
}
