:root{
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #ede9fe;
  --text-dark: #111827;
  --white: #ffffff;
}

/* Floating Button */
.ai-chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 56px;
  height: 56px;
  border-radius: 50%;

  /* Image-style purple glass gradient */
  /* background:
    radial-gradient(
      circle at top left,
      #f3f0ff 0%,
      #c7bfff 35%,
      #8b7cf6 75%,
      #6f5be6 100%
    ); */

  /* border: 1px solid rgba(255,255,255,0.55); */

  /* backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  /* box-shadow:
    0 14px 30px rgba(124, 106, 230, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.35); */

  /* transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease; */

  z-index: 9999;
}

/* Hover – image jaisa glow + lift */
.ai-chatbot-btn:hover {
  transform: scale(1.12);

  /* box-shadow:
    0 20px 46px rgba(124, 106, 230, 0.6),
    0 0 22px rgba(199, 191, 255, 0.8); */

  /* background:
    radial-gradient(
      circle at top left,
      #ffffff 0%,
      #dcd7ff 40%,
      #9a8df8 75%,
      #7c6ae6 100%
    ); */
}

.chatbot-logo {
  width: 36px;
  height: 36px;
  
  object-fit: contain;
  user-select: none;
  transition: all 0.3s ease;
}

  .ai-chatbot-btn:hover .chatbot-logo {
  transform: scale(1.12);               /* 🔥 smooth zoom */
  /* filter: brightness(0) invert(1);      white logo */
  /* box-shadow:
    0 0 10px rgba(255,255,255,0.75),
    0 0 18px rgba(199,191,255,0.85); */
}

/* Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 450px !important;
  height: 500px !important;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  /* border: 1px solid var(--primary-light); */
}

/* Header */
.chatbot-header {
  /* Image-style soft lavender gradient */
  background:
    linear-gradient(
      135deg,
      #8b7cf6 0%,
      #9a8df8 35%,
      #b6adfb 65%,
      #d9d5ff 100%
    );

  color: #ffffff;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;

  display: flex;
  justify-content: space-between;
  align-items: center;

  margin: 0px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;

  /* Soft inner highlight like image */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 6px 14px rgba(124,58,237,0.25);
}


.chatbot-header .close-btn {
  cursor: pointer;
  font-size: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--white);
}
.chatbot-header .close-btn:hover {
  color: #faf7ff;
  transform: rotate(90deg);
}

/* Messages Area */
.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;

  /* Image-style soft lavender background */
  background:
    radial-gradient(
      circle at top left,
      #f3f0ff 0%,
      #faf7ff 45%,
      #ffffff 100%
    );

  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* Messages */
.message {
  display: flex;
  gap: 10px;
  animation: slideUp 0.3s ease;
}

.message.bot {
  align-self: flex-start;
}
.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message .bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 75%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}

/* ✅ User bubble purple theme */
.message.user .bubble {
  background: linear-gradient(
    135deg,
    #8b7cf6 0%,
    #7c6ae6 45%,
    #6f5be6 100%
  );
  color: #ffffff;
  font-weight: 500;

  /* border-radius: 18px; */
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 0px;

  /* Soft depth like image */
  box-shadow:
    0 6px 16px rgba(124, 106, 230, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}


/* ✅ Bot bubble light purple */
.message.bot .bubble {
   background: linear-gradient(
    135deg,
    #8b7cf6 0%,
    #7c6ae6 45%,
    #6f5be6 100%
  );
  color: #ffff;
  border: 1px solid #ddd6fe;
}

/* Chatbot Input Wrapper */
.chatbot-input {
  margin: 12px;                 /* card body se distance */
  padding: 10px;
  border-radius: 14px;          /* rounded container */
  background: linear-gradient(
    135deg,
    #8b7cf6 0%,
    #7c6ae6 45%,
    #6f5be6 100%
  );
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Input Field */
.chatbot-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 10px;
  background: #ffffff;
  color: #333;
}

/* Input Focus Effect */
.chatbot-input input:focus {
  box-shadow: 0 0 0 2px rgba(139, 124, 246, 0.4);
}

/* Send Button */
.chatbot-input button {
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    #8b7cf6 0%,
    #7c6ae6 45%,
    #6f5be6 100%
  );
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Button Hover */
.chatbot-input button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Button Active */
.chatbot-input button:active {
  transform: scale(0.95);
}/* Input Wrapper */
.chatbot-input-wrapper {
  position: relative;
  margin: 12px;
  padding: 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

  display: flex;
  align-items: flex-end; /* 🔥 KEY: grow upwards */
}

/* Textarea (GPT style pill) */
.chatbot-textarea {
  width: 100%;
  min-height: 44px;
  max-height: 110px; /* 🔥 5 lines × 22px */
  padding: 12px 48px 12px 16px; /* right space for button */
  border-radius: 999px;
  border: none;
  outline: none;
  resize: none;

  line-height: 22px;
  font-size: 14px;
  background: transparent;

  overflow-y: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

/* Scrollbar inside textarea */
.chatbot-textarea::-webkit-scrollbar {
  width: 6px;
}
.chatbot-textarea::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

/* Send Button INSIDE input */
.send-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;

  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;

  /* 🔥 FIXED gradient */
  background: linear-gradient(135deg, #8b7cf6, #6f5be6);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover / Active */
.send-btn:hover {
  transform: scale(1.08);
}
.send-btn:active {
  transform: scale(0.95);
}

/* .fas{
  color:#7c6ae6;
} */

/* Typing Indicator */
.typing {
  font-size: 13px;
  color: var(--primary-dark);
  margin-left: 42px;
  font-style: italic;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Sticky Buttons */
.mobile-sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.mobile-sticky-cta a {
  border: 2px solid var(--primary);
  background: var(--white);
  font-size: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.20);
}

/* Default icon color */
.mobile-sticky-cta a i {
  color: var(--primary);
  transition: color 0.3s ease;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.mobile-sticky-cta a:hover {
  /* background: linear-gradient(135deg, var(--primary), var(--primary-dark)); */
   background: linear-gradient(
    135deg,
    #8b7cf6 0%,
    #7c6ae6 45%,
    #6f5be6 100%
  );
  transform: scale(1.1);
  border-color: transparent;
}

/* Hover icon white */
.mobile-sticky-cta a:hover i {
  color: var(--white);
}

/* Avatar Styles */
.avatar-chatbot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  margin-top: 18px;
  margin-left: 10px;
}

/*  Bot icon purple */
/* Bot avatar icon */
.avatar-chatbot i {
  font-size: 20px;

  /* Soft white–lavender look like image */
  color:  rgba(124, 106, 230, 0.6);

  /* Subtle glow to blend with gradient UI */
  /* text-shadow:
    0 0 6px rgba(199, 191, 255, 0.9),
    0 0 12px rgba(124, 106, 230, 0.6); */
}

/* User avatar icon */
.message.user .avatar-chatbot i {
  font-size: 26px;

  color: rgba(124, 106, 230, 0.6);

  /* text-shadow:
    0 0 8px rgba(124, 106, 230, 0.9),
    0 0 16px rgba(124, 106, 230, 0.6); */
}

