/* =========================================
   VRITTI AI CHATBOT — ULTRA PREMIUM
========================================= */

.vritti-chatbot-wrapper{
  position:fixed;
  bottom:24px;
  left:24px;
  z-index:999999;
  font-family:'Inter',sans-serif;
}

/* =========================================
   FLOATING BUTTON
========================================= */

.chatbot-toggle{
  width:68px;
  height:68px;
  border:none;
  border-radius:22px;
  background:linear-gradient(135deg,#0066b2 0%,#008cff 100%);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition:all .35s ease;
  box-shadow:
    0 15px 40px rgba(0,102,178,.35),
    0 5px 20px rgba(0,0,0,.12);
}

/* ICON */

.chatbot-toggle svg{
  width:30px;
  height:30px;
}

/* GLOW */

.chatbot-toggle::before{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:24px;
  padding:2px;
  background:linear-gradient(
    135deg,
    rgba(255,255,255,.5),
    transparent,
    rgba(255,255,255,.2)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
}

/* SHINE */

.chatbot-toggle::after{
  content:'';
  position:absolute;
  top:-100%;
  left:-100%;
  width:200%;
  height:200%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.3),
    transparent
  );
  transform:rotate(25deg);
  transition:.8s;
}

.chatbot-toggle:hover::after{
  top:100%;
  left:100%;
}

.chatbot-toggle:hover{
  transform:translateY(-5px) scale(1.05);
}

.chatbot-toggle:active{
  transform:scale(.95);
}

/* =========================================
   CHAT WINDOW
========================================= */

.chatbot-container{
  width:360px;
  height:620px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(25px);
  border-radius:32px;
  overflow:hidden;
  display:none;
  flex-direction:column;
  margin-bottom:18px;
  border:1px solid rgba(255,255,255,.35);

  box-shadow:
    0 30px 80px rgba(0,0,0,.12),
    0 10px 30px rgba(0,102,178,.08);

  animation:chatShow .35s cubic-bezier(.175,.885,.32,1.2);
}

@keyframes chatShow{
  from{
    opacity:0;
    transform:
      translateY(30px)
      scale(.92);
  }
  to{
    opacity:1;
    transform:
      translateY(0)
      scale(1);
  }
}

/* =========================================
   HEADER
========================================= */

.chatbot-header{
  position:relative;
  padding:22px;
  background:
    linear-gradient(
      135deg,
      #0066b2 0%,
      #008cff 100%
    );
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  overflow:hidden;
}

/* BG EFFECT */

.chatbot-header::before{
  content:'';
  position:absolute;
  width:180px;
  height:180px;
  background:rgba(255,255,255,.08);
  border-radius:50%;
  top:-90px;
  right:-60px;
}

.chatbot-header h3{
  margin:0;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.3px;
}

.chatbot-header p{
  margin-top:4px;
  margin-bottom:0;
  font-size:12px;
  opacity:.85;
  font-weight:500;
}

#chatbotClose{
  width:38px;
  height:38px;
  border:none;
  border-radius:12px;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:18px;
  cursor:pointer;
  transition:.3s;
  backdrop-filter:blur(10px);
}

#chatbotClose:hover{
  background:rgba(255,255,255,.25);
  transform:rotate(90deg);
}

/* =========================================
   CHAT BODY
========================================= */

.chatbot-body{
  flex:1;
  overflow-y:auto;
  padding:20px;
  background:
    linear-gradient(
      180deg,
      #f8fbff 0%,
      #f2f6fb 100%
    );
  scroll-behavior:smooth;
}

.chatbot-body::-webkit-scrollbar{
  width:5px;
}

.chatbot-body::-webkit-scrollbar-thumb{
  background:#c6dcff;
  border-radius:20px;
}

/* =========================================
   MESSAGES
========================================= */

.bot-message,
.user-message{
  max-width:82%;
  padding:14px 18px;
  margin-bottom:14px;
  border-radius:22px;
  font-size:14px;
  line-height:1.6;
  animation:messageAnimation .25s ease;
  position:relative;
}

@keyframes messageAnimation{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* BOT */

.bot-message{
  background:#fff;
  color:#1f2937;
  border-bottom-left-radius:6px;
  border:1px solid #edf2f7;
  box-shadow:
    0 8px 20px rgba(0,0,0,.04);
}

/* USER */

.user-message{
  background:
    linear-gradient(
      135deg,
      #0066b2 0%,
      #008cff 100%
    );
  color:#fff;
  margin-left:auto;
  border-bottom-right-radius:6px;

  box-shadow:
    0 10px 25px rgba(0,102,178,.22);
}

/* =========================================
   OPTIONS AREA
========================================= */

.chatbot-options{
  padding:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  background:#fff;
  border-top:1px solid #edf2f7;
}

/* BUTTONS */

.option-btn{
  border:none;
  padding:12px 16px;
  border-radius:999px;
  background:#eef5ff;
  color:#0066b2;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  transition:all .3s ease;
}

.option-btn:hover{
  background:#0066b2;
  color:#fff;
  transform:translateY(-2px);

  box-shadow:
    0 10px 20px rgba(0,102,178,.18);
}

.option-btn:active{
  transform:scale(.96);
}

/* =========================================
   TYPING ANIMATION
========================================= */

.typing{
  display:flex;
  align-items:center;
  gap:5px;
  width:max-content;
  padding:14px 16px;
  background:#fff;
  border-radius:20px;
  margin-bottom:14px;
  box-shadow:
    0 8px 20px rgba(0,0,0,.04);
}

.typing span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#0066b2;
  animation:typingDots 1.2s infinite;
}

.typing span:nth-child(2){
  animation-delay:.2s;
}

.typing span:nth-child(3){
  animation-delay:.4s;
}

@keyframes typingDots{
  0%,80%,100%{
    opacity:.3;
    transform:scale(.8);
  }
  40%{
    opacity:1;
    transform:scale(1);
  }
}

/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:768px){

  .vritti-chatbot-wrapper{
    left:14px;
    bottom:14px;
  }

  .chatbot-container{
    width:calc(100vw - 28px);
    height:78vh;
    border-radius:28px;
  }

  .chatbot-toggle{
    width:62px;
    height:62px;
    border-radius:20px;
  }

  .chatbot-toggle svg{
    width:26px;
    height:26px;
  }

  .chatbot-header{
    padding:18px;
  }

  .chatbot-header h3{
    font-size:18px;
  }

  .chatbot-header p{
    font-size:11px;
  }

  .chatbot-body{
    padding:16px;
  }

  .bot-message,
  .user-message{
    font-size:13px;
    padding:13px 15px;
  }

  .chatbot-options{
    padding:14px;
  }

  .option-btn{
    width:100%;
    text-align:center;
    padding:14px 16px;
    font-size:13px;
  }

}

/* =========================================
   SMALL LAPTOP FIX
========================================= */

@media(min-width:769px) and (max-width:1280px){

  .chatbot-container{
    width:340px;
    height:590px;
  }

}