/* ─────────────────────────────────────────────
   Bottom‑left chat widget
───────────────────────────────────────────── */

/* container pinned bottom‑left */
#chatbot-container {
 
  position: fixed;
  bottom: 35px;
  left: 60px;
  /* display: flex; */
  /* flex-direction: row-reverse;          # icon first, box to its right */
  align-items: center;
  z-index: 10000;
}

/* collapsed chat box (hidden by default) */
#chatbot-box {
  
  display: flex;
  flex-direction: column;              /* messages on top, input row below */
  background: rgba(0, 0, 0, 0.657);      /* dark translucent */
  scrollbar-color: rgba(0, 0, 0, 0.657) rgba(70, 70, 70, 0.577);       /* thumb and track */
  border: 1px solid #ffffff73;
  border-radius: 20px;
  margin-left: 8px;                    /* gap to the right of icon */
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  width: 0;                            /* collapsed */
  max-height: 80vh;                    /* so it never covers the whole page */
  opacity: 0;
  overflow: hidden;
  transition: width .3s ease, opacity .3s ease;
        backdrop-filter: blur(2px);       /* the real property */
     -webkit-backdrop-filter: blur(2px); /* Safari support */
}

/* expanded state */
#chatbot-box.open {
  width: 28vw;                        /* feel free to adjust */
  opacity: 1;
  border: 1px solid #ffffff73;
}

/* scrollable message area (ensure you have #chatbot-messages in HTML/JS) */
#chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #ffffff73;
}

/* message bubbles */
.msg {
  
  padding: 6px 10px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 16px;
  color: #fff;
  border: 1px solid #ffffff73;
}
.msg.user { background: rgba(41, 88, 0, 0.376); align-self: flex-end; }
.msg.bot  { background: rgba(0, 72, 116, 0.38);     align-self: flex-start; }

/* input row */
#chatbot-input-area { 
  /* display: flex; */
  /* display: flexbox; */
   border-top: 
   1px solid #555; 
  }

/* #chatbot-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  padding: 8px;
} */

#chatbot-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 18px;
  padding: 8px;
  resize: none;          /* prevent manual resize handles */
  overflow-y: hidden;    /* auto-expand instead of showing scroll */
  line-height: 1.4;      /* better text spacing */
  
}

#chatbot-input::placeholder { color: rgba(255,255,255,0.6); }

#chatbot-send {
  border: none;
  background: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 10px;
}

/* icon button */
.chat-icon { width: 52px; height: 52px; object-fit: contain; bottom: 8px; }
#chatbot-toggle { background:none; border:none; padding:0; cursor:pointer; }

/* ── Mobile tweaks ─────────────────────────── */
@media (max-width: 1200px) {
  #chatbot-box.open { width: 55vw; } 
}
@media (max-width: 700px) {
  #chatbot-box.open { width: 48vw; } 
}
@media (max-width: 800px) {
  #chatbot-box {
    max-height: 500px;  
     background: rgb(0, 0, 0,0.657);  
     backdrop-filter: blur(2px);       /* the real property */
     -webkit-backdrop-filter: blur(2px); /* Safari support */
  }
  #chatbot-container { 
    left: 10px; bottom: 100px; 

  }
  
  .chat-icon         { width: 52px; height: 52px; }

  #chatbot-box.open { width: 90vw; }        /* 60 % of viewport width */
  #chatbot-input    { font-size: 16px; }
  #chatbot-send     { font-size: 20px; }
  
  #chatbot-container {
  display: flex;
  flex-direction: column;   /* stack box on top, button below */
  align-items: flex-start;      /* keep them centered */
  max-width: 500px;         /* responsive limit */
  margin: auto;             /* center on page */
  margin-left: 10px;
}

#chatbot-box {
  width: 100%;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 12px;
  overflow: hidden;
}

#chatbot-toggle {
  margin-top: 10px;        /* gap below box */
  background: transparent;
  border: none;
  cursor: pointer;
}

#chatbot-toggle img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

 
}
@media (max-width: 537px) {
  #chatbot-box {
    max-height: 500px;  
     background: rgb(0, 0, 0,0.657);  
      backdrop-filter: blur(2px);       /* the real property */
     -webkit-backdrop-filter: blur(2px); /* Safari support */
  }
  #chatbot-container { 
    left: 10px; bottom: 100px; 

  }
  
  .chat-icon         { width: 52px; height: 52px; }

  #chatbot-box.open { width: 80vw; }        /* 60 % of viewport width */
  #chatbot-input    { font-size: 16px; }
  #chatbot-send     { font-size: 20px; }
}
@media (max-width: 438px) {
  #chatbot-box {
     background: rgb(0, 0, 0,0.657); 
           backdrop-filter: blur(2px);       /* the real property */
     -webkit-backdrop-filter: blur(2px); /* Safari support */
  }
  #chatbot-container { 
    left: 10px; bottom: 100px; 

  }
  
  .chat-icon         { width: 52px; height: 52px; }

  #chatbot-box.open { width: 80vw; }        /* 60 % of viewport width */
  #chatbot-input    { font-size: 16px; }
  #chatbot-send     { font-size: 20px; }
}



