:root{
  --bg:#f7f7fb;
  --card:#fff;
  --accent:#2b7cff;
  --muted:#666;
}
*{box-sizing:border-box}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  margin:0;
  padding:24px;
  display:flex;
  gap:12px;
  justify-content:center;
}
.container{
  width:100%;
  max-width:640px;
}
h1{margin:0 0 12px; font-size:20px}
.chat{
  background:var(--card);
  border:1px solid #e1e6f0;
  height:420px;
  padding:12px;
  overflow:auto;
  border-radius:10px;
  box-shadow:0 4px 18px rgba(20,30,60,0.05);
}
.msg { margin:8px 0; padding:8px 10px; border-radius:8px; max-width:86%;}
.msg .meta { font-size:12px; color:var(--muted); margin-bottom:4px; }
.msg.user { background:rgba(43,124,255,0.08); margin-left:auto; text-align:right;}
.msg.bot { background:rgba(16,185,129,0.06); }
.inputRow{
  display:flex;
  gap:8px;
  margin-top:12px;
}
.inputRow input{
  flex:1;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #d7dbe6;
  outline:none;
  font-size:15px;
}
.inputRow button{
  padding:10px 14px;
  border-radius:8px;
  border:0;
  background:var(--accent);
  color:white;
  font-weight:600;
  cursor:pointer;
}

/* Chat widget styles */
#chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 9999;
}
#chatbot-button:hover {
  transform: scale(1.1);
}

/* chat window */
#chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-height: 480px;
  background-color: var(--card);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9998;
}

#chatbot-header {
  background-color: var(--accent);
  color: white;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chatbot-close {
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

#chatbot-body {
  display: flex;
  flex-direction: column;
  height: 420px;
  background: var(--card);
}

#chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.inputRow {
  border-top: 1px solid #eee;
  padding: 8px;
  display: flex;
  gap: 6px;
}
.inputRow input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px;
  font-size: 14px;
}
.inputRow button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
