@import url('https://fonts.googleapis.com/css2?family=Halant:wght@300;400;500;600;700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Floating chat icon */
#chat-launcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* background: #0b8f43; */
  background: linear-gradient(to right, #1a264b, #2ec1a1);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  line-height: 60px;
  cursor: pointer;
  z-index: 1000;
}

/* Red dot notification */
#chat-notification {
  position: absolute;
  top: 5px;
  right: 5px;
  background: red;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
}

/* Chat modal */
#chat-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 400px;
  min-height: 500px;
  max-height: 500px;
  background: white;
  /* border: 1px solid #ccc; */
  border-radius: 10px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 34px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#chat-header {
  /* background: #0b8f43; */
  background: linear-gradient(to right, #1a264b, #2ec1a1);
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#chat-header span {
  color: white;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  font-family: 'Poppins';
}

#chat-window {
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
  gap: 10px;
  overflow-y: auto;
  background-color: #f5f5f5;
  flex-grow: 1;
}

#message {
    padding: 10px 20px;
    border: none;
    border-top: 1px solid #efefef;
    flex-shrink: 0;
    font-family: 'Poppins';
    min-height: 30px;
}

#chat-header button {
  background: transparent;
}

button {
  padding: 10px;
  background: linear-gradient(to right, #1a264b, #2ec1a1);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  font-family: 'Poppins';
}

#chat-window p {
  padding: 10px;
  background-color: #6b86ad1c;
  border-radius: 10px;
  font-size: 14px;
  line-height: 24px;
  font-family: 'Poppins';
}

/* Style for all messages */
#chat-window p {
  max-width: 75%;
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  word-wrap: break-word;
}

/* Even messages (2nd, 4th...) – You */
#chat-window p.user-msg {
  align-self: flex-end;
  text-align: left;
  background: #2baa941c;
}

/* Odd messages (1st, 3rd...) – Bot */
#chat-window p {
  align-self: flex-start;
  text-align: left;
}