body .chat-container {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: 0 auto 24px;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background-color: #487e95;
  color: white;
  padding: 20px;
  text-align: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #f1f3f5;
}

.message {
  margin-bottom: 15px;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 75%;
  word-wrap: break-word;
  animation: mycb_fadeIn 0.3s ease;
}

@keyframes mycb_fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  background-color: #d6f1fe;
  margin-left: auto;
  border-bottom-right-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bot-message {
  background-color: #ffffff;
  margin-right: auto;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.source {
  font-size: 0.8em;
  color: #6c757d;
  margin-top: 8px;
  font-style: italic;
  border-top: 1px dashed #dee2e6;
  padding-top: 5px;
  display: none;
}

.typing-indicator {
  display: none;
  padding: 10px 15px;
  color: #6c757d;
  font-style: italic;
  background-color: #f8f9fa;
  border-radius: 18px;
  margin: 0 20px 15px;
  width: fit-content;
}

.typing-indicator.active {
  display: block;
  animation: mycb_pulse 1.5s infinite;
}
@keyframes mycb_pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.chat-input-container {
  padding: 15px;
  background-color: white;
  border-top: 1px solid #e9ecef;
  display: flex;
  align-items: center;
}

#user-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  outline: none;
  font-size: 16px;
  transition: border-color 0.3s;
}

#user-input:focus {
  border-color: #2c7873;
}

#send-btn {
  background-color: #487e95;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 12px 20px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#send-btn:hover {
  background-color: #235f5b;
}
