/* Chat Toggle Button */
#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

#chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}



@keyframes pulse {
  0% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(40, 167, 69, 0.5); }
  100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
}

/* Chat Widget Container */
#chat-widget {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 360px;
  height: 480px;
  position: fixed;
  bottom: 90px;
  right: 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', sans-serif;
  z-index: 9999;
  overflow: hidden;
}

/* Header */
#chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f3f3f3;
  padding: 16px;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  font-size: 16px;
}

#chat-header i {
  margin-right: 8px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #555;
}

/* Messages Area */
#chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.5;
}

.message {
  margin-bottom: 12px;
}

.aria-message {
  background-color: #e6f0ff;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 80%;
  color: #333;
}

/* Input Area */
#chat-input-container {
  display: flex;
  padding: 16px;
  border-top: 1px solid #ddd;
  background-color: #fafafa;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

#send-btn {
  margin-left: 10px;
  background-color: #0078D4;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
