:root{
  --brand:#00704A;
  --accent:#00c853;
  --bg:#f8fafb;
  --bubble:#f1f3f5;
  --user:#00704A;
  --max-width:720px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:"Outfit", sans-serif;background:var(--bg);color:#111}

.chat-app{
  width:100%;
  max-width:420px;
  height:100%;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
  background:white;
}

/* header */
.chat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  background:linear-gradient(90deg,var(--brand), #009a55);
  color:white;
}
.chat-title{display:flex;gap:10px;align-items:center}
#bot-avatar{width:44px;height:44px;border-radius:8px;object-fit:cover;border:2px solid rgba(255,255,255,0.12)}
.name{font-weight:600}
.subtitle{font-size:12px;opacity:0.9}

/* messages area */
.chat-messages{
  flex:1;
  padding:16px;
  overflow-y:auto;
  background:linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* message bubbles */
.message{max-width:78%;margin:8px 0;display:inline-block;padding:10px 12px;border-radius:12px;line-height:1.35;font-size:14px}
.message.bot{background:var(--bubble);color:#111;border-bottom-left-radius:4px}
.message.user{background:var(--user);color:white;margin-left:auto;border-bottom-right-radius:4px;text-align:right}

/* typing indicator */
.typing{
  display:inline-block;
  background:transparent;
  padding:6px 8px;
}
.dot{width:6px;height:6px;background:#ccc;border-radius:50%;display:inline-block;margin:0 3px;animation:typing 1s infinite}
@keyframes typing{0%{transform:translateY(0)}50%{transform:translateY(-4px)}100%{transform:translateY(0)}}

/* input */
.chat-input{
  display:flex;
  gap:8px;
  padding:12px;
  border-top:1px solid #eef2f6;
  background:white;
}
.chat-input input{
  flex:1;padding:10px 12px;border-radius:10px;border:1px solid #e6eaee;font-size:15px;
  outline:none;
}
.chat-input input:focus{box-shadow:0 4px 18px rgba(0,0,0,0.06)}
.chat-input button{
  background:var(--brand);
  color:white;border:none;padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:600;
  transition:transform .12s ease;
  font-family: inherit;
}
.chat-input button:active{transform:scale(.98)}

/* minimize button */
#minimize-btn{
  background:transparent;border:none;color:white;font-size:20px;cursor:pointer;padding:6px 8px;border-radius:6px;
}

/* responsiveness */
@media (max-width:480px){
  .chat-app{max-width:100%;height:85vh;border-radius:8px;margin:10vh auto 0}
  .chat-messages{padding:12px}
}
