/* === Chatbot Styles === */
.chat-bubble {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 998;
  transition: transform 0.2s ease;
}

.chat-bubble:hover {
  transform: scale(1.1);
}

.chat-bubble img {
  width: 60%; /* Controls the size of the logo */
  height: 60%;
  object-fit: contain;
}

.chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 350px;
  max-width: 90vw;
  height: 450px;
  max-height: 70vh;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;

  /* Hide by default */
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.2s ease-out;
}

.chat-window.show {
  transform: scale(1);
}

.chat-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  padding: 0.75rem 1rem;
  border-radius: 15px;
  max-width: 80%;
  word-wrap: break-word;
}

.chat-message.user {
  background-color: var(--primary-color);
  color: var(--white);
  border-bottom-right-radius: 5px;
  align-self: flex-end;
}

.chat-message.bot {
  background-color: #f1f1f1;
  color: var(--text-dark);
  border-bottom-left-radius: 5px;
  align-self: flex-start;
}

.chat-input-form {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 0.5rem;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
}

.chat-send-btn {
  border: none;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 1rem;
  padding: 0 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.chat-send-btn .send-arrow-icon {
  width: 1.2rem;
  height: 1.2rem;
  /* Helps center the icon perfectly inside the button */
  display: block;
  margin: auto;
}
