* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #e5ddd5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.chat-container {
  width: 100%;
  max-width: 420px;
  height: 100vh;
  max-height: 720px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
}

.chat-header {
  background: #075e54;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.name { font-weight: 600; font-size: 15px; }
.status { font-size: 12px; opacity: 0.8; }

.messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #e5ddd5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.bubble.bot {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.bubble.user {
  background: #dcf8c6;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.bubble.typing {
  color: #999;
  font-style: italic;
}

.chat-form {
  display: flex;
  padding: 10px;
  background: #f0f0f0;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
}

.chat-form button {
  background: #128c7e;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0 18px;
  font-size: 14px;
  cursor: pointer;
}

.chat-form button:hover { background: #0e6f63; }
