body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  min-height: 100vh;
}

.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-label {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.help-label:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.chat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #1c2c49, #26297e);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.chat-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.chat-icon img {
  width: 30px;
  height: 30px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.chat-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 500px;
  height: 500px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.1s ease, opacity 0.4s ease;
  z-index: 9999;
  
}
.content{
  padding: 19px;
  font-size: 1rem;
  background: #eaeaeab8;
  /* border-radius: 2px 4px 57px 3px; */
}

.chatbox-header .actions i {
  margin-left: 10px;
  cursor: pointer;
}
.chat-popup.show {
  transform: translateX(0);
  opacity: 1;
}
@keyframes zoomIn {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0; }
}
/* ✅ Smooth appear style */
.chat-popup {
  transform-origin: bottom right;
  transition: all 0.4s ease;
}


@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.chat-header {
  background: linear-gradient(45deg, #1c2c49, #26297e);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-radius: 20px 20px 0 0; */
  position: sticky;
  top: 0;
}
.chat-header h3 {
  flex-grow: 1;
  text-align: center;
  margin: 0;
  color: #fff;
}

/* ✅ Logo style */
.chat-logo {
  height: 28px;
  margin-right: 10px;
}
.message {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.message.user {
  align-self: flex-end;
  background-color: #0084ff;
  color: #fff;
}

.message.ai {
  align-self: flex-start;
  background-color: #e0e0e0;
  color: #333;
}

.chat-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
}

.close-icon {
  cursor: pointer;
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease;
}

.close-icon:hover {
  transform: rotate(90deg);
}

.close-icon img {
  width: 20px;
  height: 20px;
}

.chat-message-box {
  /* position: relative; */
  height: 400px;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

.chat-messages {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9f9f9;
}

.chat-input {
  position: absolute;
  display: flex;
  padding: 10px;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  position: sticky;
  align-items: center;
  gap: 8px;
  border-radius:40px;
}

.mic-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #1c2c49, #26297e);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mic-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mic-icon.listening {
  background: linear-gradient(45deg, #ff4444, #ff7777);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.mic-icon img {
  width: 20px;
  height: 20px;
}
.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 20px;
  margin: 10px;
}

.chat-input textarea {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  resize: none;
  line-height: 1.4;
  min-height: 40px;
  max-height: 100px;
  overflow-y: auto;
}

.mic-icon img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.send-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #1c2c49, #26297e);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
  padding: 0;
}

.send-icon img {
  width: 20px;
  height: 20px;
}


/* .chat-input input {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
} */

/* .chat-input input:focus {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.send-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #1c2c49, #26297e);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
} */

.send-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* .send-icon img {
  width: 20px;
  height: 20px;
} */

.message {
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  max-width: 70%;
  animation: fadeIn 0.3s ease;
}

.message.question {
  background: #e0f7fa;
  align-self: flex-end;
}

.message.answer {
  background: #eceff1;
  align-self: flex-start;
}

.message .timestamp {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
  text-align: right;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .chat-container {
    bottom: 15px;
    right: 15px;
  }

  .chat-icon {
    width: 50px;
    height: 50px;
  }

  .chat-icon img {
    width: 25px;
    height: 25px;
  }

  .help-label {
    font-size: 12px;
    padding: 6px 12px;
  }

  .chat-popup {
    width: 90vw;
    height: 70vh;
    bottom: 70px;
    right: 5vw;
  }

  .chat-header h3 {
    font-size: 16px;
  }

  .chat-input {
    padding: 8px;
    gap: 6px;
    border-radius: 39px;
  }

  .mic-icon,
  .send-icon {
    width: 35px;
    height: 35px;
  }

  .mic-icon img,
  .send-icon img {
    width: 18px;
    height: 18px;
  }

  .chat-input input {
    font-size: 13px;
    padding: 8px 12px;
  }

  .message {
    font-size: 13px;
    max-width: 80%;
  }
}
@keyframes zoomSlideIn {
  0% {
    transform: scale(0.7) translateX(100%);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateX(0);
    opacity: 1;
  }
}


