.main-content {
  padding: 20px;
}

.floating-icon {
  position: fixed;
  bottom: 20%;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #007BFF;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.floating-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.icon-bg {
  height: 35px;
  width: 35px;
  /* background-size: 100% 100%; */
}

.chat-container {
  z-index: 10;
  position: fixed;
  bottom: 49px;
  right: 37%;
  width: 500px;
  height: 600px;
  margin: 50px auto;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: white;
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chat-title {
  font-size: 18px;
  font-weight: bold;
  color: #007BFF;
}

.chat-close-btn {
  background-color: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.chat-close-btn:hover {
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-btn-bg {
  height: 70%;
  width: 70%;
}

.chat-messages {
  height: 460px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: #f5f5f5;
}

.message {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.user-message {
  justify-content: flex-end;
  flex-direction: row;
}

.bot-message {
  justify-content: flex-end;
  flex-direction: row-reverse;
  white-space: pre-wrap;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  margin-left: 10px;
  /* Add margin for bot messages */
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.user-avatar {
  background-repeat: no-repeat;
  background-color: #f0f0f0;
  background-size: 100% 100%;
}

.bot-avatar {
  background-repeat: no-repeat;
  background-color: #007BFF;
  background-size: 100% 100%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.message-text {
  background-color: #e0e0e0;
  padding: 10px;
  border-radius: 10px;
  max-width: 70%;
  word-wrap: break-word;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-time {
  color: #999;
  font-size: 12px;
  margin-top: 5px;
}

.message-text::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  clear: both;
}

.user-message .message-text {
  background-color: #e0e0e0;
}

.bot-message .message-text {
  background-color: #007BFF;
  color: white;
}

.chat-input-container {
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.chat-input {
  width: calc(100% - 120px);
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-send-btn {
  width: 100px;
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.chat-send-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}