body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #f7f7f8;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 100%;
  max-width: 720px;
  height: 90vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.chat-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 18px;
}

#chat {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.msg {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.msg-user {
  background: #dbeafe;
  align-self: flex-end;
}

.msg-bot {
  background: #f1f5f9;
  align-self: flex-start;
}

.chat-input {
  display: flex;
  padding: 14px;
  border-top: 1px solid #eee;
}

.chat-input input {
  flex: 1;
  padding: 12px;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
}

.chat-input button {
  margin-left: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.msg-wrapper {
  display: flex;
  flex-direction: column;
}

.msg-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
}

.msg-wrapper .msg-user {
  align-self: flex-end;
}

.msg-wrapper .msg-bot {
  align-self: flex-start;
}
