/* DMA Chatbot v2 — Light Theme */
#dma-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* Toggle button */
#dma-chat-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14,165,233,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
#dma-chat-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 28px rgba(14,165,233,0.5);
}
#dma-chat-toggle .chat-label {
  display: none;
}

/* Tooltip on hover */
#dma-chat-toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#dma-chat-toggle:hover::after {
  opacity: 1;
}

/* Pulse animation for attention */
@keyframes chat-pulse {
  0% { box-shadow: 0 4px 20px rgba(14,165,233,0.4); }
  50% { box-shadow: 0 4px 20px rgba(14,165,233,0.4), 0 0 0 8px rgba(14,165,233,0.15); }
  100% { box-shadow: 0 4px 20px rgba(14,165,233,0.4); }
}
#dma-chat-toggle.pulse {
  animation: chat-pulse 2s ease-in-out 3;
}

/* Panel */
#dma-chat-panel {
  display: none;
  flex-direction: column;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 500px;
  max-height: calc(100vh - 100px);
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  overflow: hidden;
}

/* Header */
#dma-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #0f172a;
  color: #fff;
}
#dma-chat-title { font-weight: 700; font-size: 14px; }
#dma-chat-subtitle { font-size: 11px; opacity: 0.75; margin-top: 2px; }
#dma-chat-close {
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
#dma-chat-close:hover { background: rgba(255,255,255,0.2); }

/* Body */
#dma-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}

/* Messages */
.dma-msg { margin: 8px 0; display: flex; }
.dma-msg-bot { justify-content: flex-start; }
.dma-msg-user { justify-content: flex-end; }

.dma-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  word-wrap: break-word;
}

.dma-msg-bot .dma-bubble {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.dma-msg-user .dma-bubble {
  background: #0ea5e9;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.dma-typing .dma-bubble {
  color: #64748b;
  font-style: italic;
}

/* Quick replies */
.dma-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.dma-chip {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.dma-chip:hover {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* F