/* Floating chat button + welcome bubble */
#chatWrapper{
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  text-align: right;
}


/* Vertical "How may I help you?" pill – FINAL & CORRECT */
#welcomeBubble{
  position: fixed;

  /* 🔥 यही control है */
  top: 35%;          /* 25%–45% try kar sakte ho */
  right: 0;

  background:#4CAF50;
  color:#fff;

  padding:18px 10px;
  border-radius:28px 0 0 28px;

  font-size:14px;
  font-weight:500;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;

  cursor:pointer;
  box-shadow:0 6px 14px rgba(0,0,0,.25);
  animation:pulse 2s infinite;

  z-index:9999;
    /* ✅ ADD THIS */
  max-height: 80vh;
}



@keyframes pulse{
  0%{transform:scale(1)}
  50%{transform:scale(1.03)}
  100%{transform:scale(1)}
}

#chatbotButton{
  background:#4CAF50;
  color:#fff;
  border-radius:50%;
  width:66px;
  height:66px;
  display:none;
  align-items:center;
  justify-content:center;
  font-size:28px;
  cursor:pointer;
  box-shadow:0 6px 12px rgba(0,0,0,.2);
  animation:shake 3s infinite;
}

@keyframes shake{
  0%,100%{transform:translate(0,0)}
  25%{transform:translate(2px,-2px)}
  50%{transform:translate(-2px,2px)}
  75%{transform:translate(2px,2px)}
}

#chatbotContainer{
  position:fixed;

  right:10px;
  top:60%;
  transform:translateY(-50%);

  width:360px;
  max-width:92vw;
  height:420px;
  max-height:90vh;

  z-index:10000;
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
  overflow:hidden;
  font-family:Arial, sans-serif;

  flex-direction:column;

  display:none;
  opacity:0;
  visibility:hidden;
}

/* Header */
#chatHeader{
  background:#4CAF50;
  color:#fff;
  padding:10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.chatLeft{
  display:flex;
  align-items:center;
  gap:8px;
}

.chatLeft img{
  height:28px;
  width:28px;
  border-radius:4px;
}

.chatTitle{
  font-weight:700;
  font-size:15px;
}

.chatControls button{
  background:transparent;
  border:none;
  color:#fff;
  font-size:16px;
  cursor:pointer;
  margin-left:6px;
}

/* Messages */
#chatBox{
  flex:1;
  padding:12px;
  overflow-y:auto;
  background:#f0fff0;
 
}

.msg.user{
  text-align:right;
  margin:8px 0;
}

.msg.user .bubble{
  display:inline-block;
  background:#d9f1ff;
  padding:7px 9px;
  border-radius:10px;
  border:1px solid #bfe7ff;
  font-size:14px;
}

.msg.bot{
  text-align:left;
  margin:8px 0;
}

.msg.bot .bubble{
  display:inline-block;
  background:#e8f9e8;
  padding:7px 9px;
  border-radius:10px;
  border:1px solid #c9eac9;
  font-size:14px;
}

/* Suggestions */
.suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:8px;

}

.suggestions button{
  padding:6px 10px;
  border-radius:16px;
  border:1px solid #4CAF50;
  background:#f6fff6;
  cursor:pointer;
  font-size:12px;
}

/* Input */
#chatInputArea{
  display:flex;
  gap:6px;
  padding:8px;
  border-top:1px solid #eee;
}

#chatInput{
  flex:1;
  padding:8px;
  border-radius:6px;
  border:1px solid #ddd;
  font-size:14px;
}

#sendBtn,
#micBtn{
  background:#4CAF50;
  color:#fff;
  border:none;
  padding:8px 10px;
  border-radius:6px;
  cursor:pointer;
  font-size:14px;
}

/*#chatbotContainer{
  bottom:20px;
}
*/

