:root{
  --primary: #1E3A8A;
  --accent:  #EF4444;
  --bg:      #FFFFFF;
  --muted:   #F3F4F6;
  --text:    #111827;
}

/* bubble (launcher) */
#chatbot-bubble{
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16,24,40,0.25);
  z-index: 99999;
  transition: transform .12s ease, background .12s;
}
#chatbot-bubble:hover{ transform: translateY(-3px); background: #163270; }

/* chatbox */
#chatbot-box{
  position: fixed;
  bottom: 96px;
  right: 20px;
  width: 340px;
  height: 460px;
  display: none; /* closed by default */
  flex-direction: column;
  background: var(--bg);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(16,24,40,0.2);
  overflow: hidden;
  z-index: 99998;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* header */
#chatbot-header{
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#chatbot-close{
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* messages area */
#chatbot-messages{
  flex: 1;
  padding: 12px;
  background: var(--muted);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* message bubbles */
.chatbot-message{
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 78%;
  word-wrap: break-word;
  line-height: 1.35;
  font-size: 14px;
}
.chatbot-message.bot{
  align-self: flex-start;
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(16,24,40,0.06);
}
.chatbot-message.user{
  align-self: flex-end;
  background: var(--accent);
  color: white;
}

/* input area */
#chatbot-input-area{
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e6e9ee;
  background: #fff;
}
#chatbot-input{
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e6e9ee;
  font-size: 14px;
  outline: none;
}
#chatbot-send{
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
#chatbot-send:hover{ background:#163270; }

/* small responsive tweak */
@media (max-width:420px){
  #chatbot-box{ right: 12px; left: 12px; width: auto; height: 60vh; }
  #chatbot-messages{ padding: 10px; }
}
