/* Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Chatbot Button */
.chatbot-button {
  background-color: #007bff;
  border: none;
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  position: relative;
}

.chatbot-button img {
  width: 30px;
  height: 30px;
}

.tooltip-text {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 90px;
  transform: translateX(50%);
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 20px;
}

.chatbot-button:hover .tooltip-text {
  display: block;
}

/* Chat Window Styles */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px;
  height: 500px;
  border: 1px solid #ccc;
  background-color: #f0f2f5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

/* Chat Content */
.chat-container {
  width: 100%;
  max-width: 800px;
  background-color: white;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 75vh;
}

.output-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-image: url("./background.jpg");
  display: flex;
  flex-direction: column;
}

/* User and AI Message Styles */
.user-message,
.ai-message {
  max-width: 95%; /* Limit the width to 60% */
  padding: 10px 15px;
  border-radius: 18px;
  margin-bottom: 10px;
  word-wrap: break-word;
  width: auto;
  max-height: auto; /* Limit the height for longer messages */
}

.user-message {
  align-self: flex-end;
  background-color: #0084ff;
  color: white;
  text-align: left;
}

.ai-message {
  align-self: flex-start;
  background-color: #e4e6eb;
  color: black;
  text-align: left;
}
/* Input Group */
.input-group {
  padding: 15px;
  background-color: #f0f2f5;
  display: flex;
  align-items: center;
}

.form-control {
  flex: 1;
  width: 80%;
  border-radius: 20px;
  padding: 10px 15px;
  border: 1px solid #ccc;
}

.btn {
  width: 20%;
  border-radius: 20px;
  margin-left: 10px;
  height: 30px;
}
/* AI Message Loading Dots */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #007bff;
  margin: 0 5px;
  animation: loading 0.6s infinite alternate;
}

@keyframes loading {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.5);
  }
}

/* Output Field Styling */
.output-field {
  text-align: center;
  font-size: 1.3rem; /* Increase font size */
  font-weight: bold; /* Make the text bold */
  padding: 13px;
  background-color: #f7f8fa; /* Light background for better readability */
  color: #333; /* Darker text color */
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add slight shadow for effect */
  margin-bottom: 10px;
}

/* Additional Styling for Lists within AI Messages */
.ai-message ol,
.ai-message ul {
  padding-left: 20px; /* Adjust the padding for lists */
  margin-top: 5px;
  margin-bottom: 5px;
}

.ai-message ol {
  list-style-position: inside; /* Ensure list numbers stay inside the container */
}

.ai-message li {
  margin-bottom: 5px; /* Add spacing between list items */
}

/* Handle nested lists */
.ai-message ol ol,
.ai-message ul ul {
  padding-left: 15px;
}

.user-message,
.ai-message {
  overflow-wrap: break-word;
  word-break: break-word;
}
