/* Floating Chat Button */
#chat-widget-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: linear-gradient(135deg, #1e90ff, #0073ff);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 10px 18px rgba(0, 123, 255, 0.35);
  transition: 0.25s ease;
}

#chat-widget-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 28px rgba(0, 123, 255, 0.5);
}

/* Chat Box */
#chat-widget-box {
  position: fixed;
  bottom: 110px;
  right: 22px;
  width: 340px;
  height: 480px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
#chat-header {
  background: linear-gradient(135deg, #007bff, #0063d1);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Messages Section */
#chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Message Bubble */
.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* User Bubble */
.message.user {
  align-self: flex-end;
  background: #007bff;
  color: white;
}

/* Bot Bubble */
.message.bot {
  align-self: flex-start;
  background: #e8f1ff;
  color: #063a7a;
}

/* Input Area */
#chat-input-area {
  display: flex;
  padding: 12px;
  background: #f7f9fc;
  border-top: 1px solid #dce3ef;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #c4d4e3;
  border-radius: 14px;
  outline: none;
  font-size: 14px;
}

#chat-input:focus {
  border-color: #007bff;
}

#chat-send {
  margin-left: 10px;
  padding: 10px 18px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

#chat-send:hover {
  background: #005fcc;
}
