body {
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 0;
}

#chat-container {
  max-width: 500px;
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
}

.message {
  margin: 12px 0;
  padding: 10px 16px;
  border-radius: 18px;
  max-width: 80%;
  word-break: break-word;
  line-height: 1.5;
}

.user {
  background: #d1eaff;
  align-self: flex-end;
  text-align: right;
}

.bot {
  background: #f0f0f0;
  align-self: flex-start;
  text-align: left;
}

#error {
  color: #ff4d4f;
  margin-top: 8px;
}

#mic-btn {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 28px;
  font-size: 18px;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

#mic-btn.listening {
  background: #28a745;
}

#mic-icon {
  font-size: 22px;
}
