/* mAddIe Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  max-height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 9999;
  font-family: 'Inter', -apple-system, sans-serif;
  overflow: hidden;
  transition: all 0.3s ease;
}

.chatbot-widget.collapsed { max-height: 60px; }
.chatbot-widget.collapsed .chatbot-body { display: none; }
.chatbot-widget.hidden { display: none; }

.chatbot-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  cursor: pointer;
}

.chatbot-avatar { width: 36px; height: 36px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chatbot-title { flex: 1; margin-left: 12px; }
.chatbot-name { font-weight: 600; display: block; }
.chatbot-status { font-size: 12px; opacity: 0.9; }
.chatbot-toggle { background: none; border: none; color: white; font-size: 16px; cursor: pointer; }

.chatbot-body { display: flex; flex-direction: column; height: 400px; }
.chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; }

.message { padding: 12px 16px; border-radius: 12px; margin-bottom: 12px; max-width: 85%; line-height: 1.5; }
.message.maddie { background: #f0f4f8; color: #1e293b; }
.message.user { background: #3b82f6; color: white; margin-left: auto; }
.message a { color: #2563eb; text-decoration: underline; }

.chatbot-input { display: flex; padding: 12px; border-top: 1px solid #e5e7eb; gap: 8px; }
.chatbot-input input { flex: 1; padding: 12px; border: 1px solid #e5e7eb; border-radius: 8px; outline: none; font-size: 14px; }
.chatbot-input input:focus { border-color: #3b82f6; }
.chatbot-input button { padding: 12px 20px; background: #3b82f6; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; }
.chatbot-input button:hover { background: #2563eb; }

.typing-dots { display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

@media (max-width: 480px) {
  .chatbot-widget { width: calc(100% - 20px); right: 10px; bottom: 10px; }
}
