body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:#e5ddd5;
}

.app{
  height:100vh;
  display:flex;
  flex-direction:column;
  max-width:28rem;
  margin:0 auto;
  background:#efeae2;
}

.top-bar{
  flex-shrink:0;
  background:#075e54;
  color:white;
  padding:12px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 2px 4px rgba(0,0,0,0.2);
}

.top-bar img{
  width:46px;
  height:46px;
  border-radius:50%;
}

.top-bar .title{
  font-weight:bold;
  font-size:16px;
}

.top-bar .subtitle{
  font-size:12px;
  opacity:.85;
}

#chat{
  flex:1;
  overflow-y:auto;
  padding:15px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#e5ddd5;
}

.msg-row{
  display:flex;
  width:100%;
}

.msg-row.bot{
  justify-content:flex-start;
}

.msg-row.user{
  justify-content:flex-end;
}

.bubble{
  position:relative;
  max-width:85%;
  padding:12px 14px;
  border-radius:10px;
  font-size:16px;
  line-height:1.4;
  box-shadow:0 1px 2px rgba(0,0,0,.2);
  animation:msgIn .25s ease-out;
  word-wrap:break-word;
  white-space:pre-wrap;
}

.bubble.bot{
  background:white;
}

.bubble.user{
  background:#dcf8c6;
}

.time{
  font-size:11px;
  opacity:.6;
  margin-top:4px;
  text-align:right;
}

.quick-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}

.quick-buttons button{
  border:none;
  border-radius:18px;
  padding:8px 12px;
  background:#25d366;
  color:white;
  cursor:pointer;
  font-size:14px;
}

.quick-buttons button:hover{
  background:#1faa52;
}

#chatForm{
  display:flex;
  gap:10px;
  padding:10px;
  border-top:1px solid #ddd;
  background:white;
}

#message{
  flex:1;
  border:none;
  outline:none;
  font-size:16px;
  resize:none;
  border-radius:18px;
  padding:10px 14px;
  background:#f4f4f4;
}

#chatForm button{
  background:#22c55e;
  border:none;
  padding:10px 16px;
  color:white;
  border-radius:20px;
  cursor:pointer;
}

.typing{
  display:inline-block;
  background:white;
  padding:10px 14px;
  border-radius:10px;
  box-shadow:0 1px 2px rgba(0,0,0,.2);
  font-size:18px;
}

@keyframes msgIn{
  0%{
    transform:translateY(8px) scale(.96);
    opacity:0;
  }
  100%{
    transform:translateY(0) scale(1);
    opacity:1;
  }
}