/* ===== General Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* ===== Floating Icon ===== */
.chatbot-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    /*background-color: #0e5353;*/
    background-color: #EEF5F7;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
}

.chatbot-icon img {
  width: 28px;
  height: 28px;
}

/* ===== Chat Window ===== */
.logo{
    width: 30px;
    height: 30px;
    vertical-align: middle;
    margin-right: 5px;
}
.chatbot-window {    
    max-height: calc(100vh - 100px);
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 440px;
    height: 550px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}
.child-window{
      display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: -webkit-fill-available;
}
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===== Header ===== */
.chatbot-header {
  background-color: #0e5353;
  color: white;
  padding: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chatbot-header span {
  cursor: pointer;
  font-size: 18px;
}

/* ===== Messages ===== */
.chatbot-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  max-height: calc(550px - 120px);
  scroll-behavior: smooth;
}
.message {
  display: flex;
  flex-direction: column;
}
.bot { align-items: flex-start; }
.user { align-items: flex-end; }

.bubble {
  padding: 8px 12px;
  max-width: 90%;
  border-radius: 10px;
  word-wrap: break-word;line-height: 1.6;
}
.bot .bubble {
  background-color: #f2f2f2;
  color: #000;
  border-radius: 10px 10px 10px 0;
}
.user .bubble {
  background-color: #0e5353;
  color: white;
  border-radius: 10px 10px 0 10px;    line-height: 1;
    font-size: 13px;
}
.time-stamp {
  font-size: 11px;
  color: black;
  margin-top: 2px;
      margin-top: 3px;
    margin-bottom: 5px;
    padding: 0 12px;
}

/* ===== Input Area ===== */
.chatbot-input {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 10px;
  border-top: 1px solid #ddd;
  display: flex;
}
.chatbot-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}
.chatbot-input button {
  background-color: #0e5353;
  color: white;
  border: none;
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== Chips ===== */
.default-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;    margin-bottom: 20px;
}
.chip {
  background-color: #0e5353;
  color: white;
  background-color: #e6e6e6;
    color: #000000;
  border: none;
  border-radius: 5px;
  padding: 5px 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.chip:hover { background-color: #1b2f74;background-color: #0e5353;
    color: white; }

.bubble .chip { background-color: #1a3c66;
    color: white; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .chatbot-window { width: 600px; height: 450px; right: 15px; bottom: 80px; }
  .chatbot-messages { max-height: calc(450px - 120px); }
}
@media (max-width: 768px) {
  .chatbot-window { width: 90%; right: 5%; bottom: 70px; height: 60vh; }
  .chatbot-messages { max-height: calc(60vh - 120px); max-height: calc(77vh - 120px); }
  .chatbot-input input { font-size: 14px; }
  .chatbot-input button { font-size: 14px; padding: 8px 10px; }
  .chip { font-size: 12px; padding: 5px 10px; }
}
@media (max-width: 480px) {
  .chatbot-window { width: 95%; right: 2.5%; bottom: 60px; height: 55vh; bottom: 40px;
        height: 75vh;}
  .chatbot-header { font-size: 14px; padding: 10px; }
  .chatbot-input input { font-size: 14px; padding: 6px 8px; }
  .chatbot-input button { font-size: 14px; padding: 6px 10px; }
  .chip { font-size: 11px; padding: 4px 8px; }
  .chatbot-icon { width: 60px; height: 60px; }
  .chatbot-icon img { width: 28px; height: 28px; }
}
/* Disable inactive chips */
.chip.disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* Highlight active chip */
.chip.active {
    background-color: #0047b3 !important;
    color: #fff !important;
}

/* Placeholder muted */
.placeholder-light::placeholder {
    color: #888 !important;
    opacity: 1;
}

/* Ensure user-typed text remains normal */
.placeholder-light {
    color: #000 !important;
}

#userInput::placeholder {
    color: #999 !important;
    opacity: 1;
}

/* Typed text should appear normal */
#userInput {
    color: #000 !important;
}



