body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0077cc;
  color: white;
  font-size: 24px;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.chat-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-height: 500px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
}
.chat-header {
  background: #0077cc;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.chat-box {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  height: 300px;
}
.message {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 10px;
  max-width: 80%;
}
.message.bot {
  background: #f1f1f1;
  align-self: flex-start;
}
.message.user {
  background: #cce5ff;
  align-self: flex-end;
  margin-left: auto;
}
#chat-form {
  display: flex;
  border-top: 1px solid #ccc;
}
#chat-form input {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-bottom-left-radius: 12px;
}
#chat-form button {
  padding: 10px;
  border: none;
  background: #0077cc;
  color: white;
  cursor: pointer;
  border-bottom-right-radius: 12px;
}
