:root {
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

.chat-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 64px;
  width: 300px;
  height: 380px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 8px 10px;
  border-radius: 8px;
  max-width: 85%;
  word-break: break-word;
}

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

.message.ai {
  align-self: flex-start;
  background: #f3f4f6;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
}

.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 8px;
}

.chat-form button {
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
