#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-family: Arial, sans-serif;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

/* Enhanced Header with icons */
#chat-header {
  background: #f14f00;
  color: #fff;
  padding: 12px 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

#chat-header::before {
  content: "🤖"; /* Bot icon */
  font-size: 20px;
}

#chat-body {
  padding: 10px;
  height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: #fafafa;
}

/* Message bubbles with icons */
.chat-message {
  margin: 5px 0;
  padding: 10px 12px;
  border-radius: 16px;
  max-width: 85%;
  position: relative;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 14px;
}

.user {
  background-color: #e0f7fa;
  align-self: flex-end;
}

.user::before {
  content: "🧑";
  position: absolute;
  left: -25px;
  top: 2px;
  font-size: 16px;
}

.bot {
  background-color: #f1f1f1;
  align-self: flex-start;
  white-space: pre-wrap;
}

.bot::before {
  content: "🎧";
  position: absolute;
  left: -25px;
  top: 2px;
  font-size: 16px;
}

#chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background: #fff;
}

#chat-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

#chat-input input:focus {
  border-color: #f14f00;
}

#chat-input button {
  background: #00665f;
  color: #fff;
  border: none;
  padding: 10px 15px;
  margin-left: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#chat-input button:hover {
  background: #004d45;
}

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffe8d6;
  color: #f14f00;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

#chat-toggle:hover {
  transform: scale(1.1);
}
