/* body {
  font-family: Arial, sans-serif;
  background: #f1f1f1;
  margin: 0;
  height: 100vh;
  position: relative;
} */

/* Floating Chat Button */
#chatToggleBtn {
  position: fixed;
  bottom: 30px;
  right: 15px;
  width: 60px;
  height: 60px;
  background-color: #007bff;
  border: 2px solid rgb(4, 255, 4);

  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 30px;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}
#chatToggleBtn:hover {
  background-color: #0056b3;
}

/* Icon inside button for animation */
#chatToggleIcon {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#chatToggleBtn.active {
  background-color: white;
  color: #007bff;
  border: 2px solid rgb(4, 255, 4);
}

/* Chat Window Container with transition */
#chatWindow {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 400px;
  max-height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
/* Visible state */
#chatWindow.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#chatWindow.open img {
}

/* Chat header */
#chatHeader {
  background-color: #007bff;
  color: white;
  padding: 15px;
  font-weight: bold;
  font-size: 18px;
  border-radius: 15px 15px 0 0;
  user-select: none;
}

/* Chat messages container */
.chat-container {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #fafafa;
}

/* Input container */
.input-container {
  display: flex;
  border-top: 1px solid #ddd;
}

input[type="text"] {
  flex: 1;
  padding: 12px 15px;
  font-size: 16px;
  border: none;
  outline: none;
  border-radius: 0 0 0 15px;
}

button.sendBtn {
  padding: 12px 20px;
  border: none;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 0 15px 0;
  transition: background-color 0.3s;
}
button.sendBtn:hover {
  background-color: #0056b3;
}

/* Messages */
.message {
  margin: 8px 0;
  padding: 10px 15px;
  border-radius: 20px;
  /* max-width: 75%; */
  white-space: pre-wrap;
  animation: fadeIn 0.3s ease-in-out;
  word-wrap: break-word;
  z-index: 400000;
}

.user {
  background: #d1e7dd;
  align-self: flex-end;
  margin-left: auto;
  color: black;
}

.bot {
  /* background: #f8d7da; */
  align-self: flex-start;
  margin-right: auto;

  color: black;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
