/* Chatbot container */
#chat-container, .chat-container, #chat-box, .chat-box, .chat-body {
    background-image: none !important;
    background-color: var(--card, #fff) !important;
}

.chat-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: translateY(20px);
  opacity: 0;
}

.chat-container.open {
  transform: translateY(0);
  opacity: 1;
}

/* Chatbot header */
.chat-header {
  background-color: #f7f7f7;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #888;
}

/* Chat box for messages */
.chat-box {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  height: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: var(--card, #fff) !important;
  background-image: none !important;
}

/* Individual chat messages */
.chat-message {
  padding: 10px 15px;
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.4;
}

.user-message {
  background-color: #007bff;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bot-message {
  background-color: #e9e9eb;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* Chat input area */
.chat-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-input {
  flex-grow: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 1em;
}

.btn-send {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating Action Button */
@keyframes float-animation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Wrapper for the FAB and its label */
.chat-fab-wrapper {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  animation: float-animation 3s ease-in-out infinite;
}

/* The text label */
.chat-fab-label {
  background-color: var(--primary, #007bff);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 10px; /* Changed from margin-bottom */
  font-size: 0.9em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Speech bubble triangle (pointing up) */
.chat-fab-label::after {
  content: '';
  position: absolute;
  bottom: -5px; /* Positioned at the top */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--primary, #007bff); /* Pointing up */
}

.chat-fab {
  background-color: transparent;
  background-image: url('https://i.ibb.co/p6855CCR/lp-removebg-preview.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 60px;
  height: 60px;
  border: none;
  box-shadow: none;
  cursor: pointer;
}
