* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: 100vh;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.chat-container {
  width: 100%;
  max-width: 480px;
  height: 90vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.header {
  background: #ff6bcb;
  color: white;
  padding: 15px;
  text-align: center;
  position: relative;
}

.avatar {
  width: 60px; height: 60px; background: white; border-radius: 50%;
  font-size: 30px; line-height: 60px; margin: 0 auto 8px;
}

.name { font-size: 20px; font-weight: bold; }
.status { font-size: 12px; opacity: 0.9; }

.messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f9f9f9;
}

.message {
  max-width: 80%;
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 20px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message.user {
  background: #ff6bcb;
  color: white;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message.bot {
  background: #eee;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.input-area {
  padding: 15px;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 10px;
}

#userInput {
  flex: 1;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
}

#sendBtn {
  padding: 0 20px;
  background: #ff6bcb;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}