/**
 * Bharat Universal Address Engine V1
 * Companion Styles: Floating AI Support Assistant & Error Recovery Widget
 */

.bharat-ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  font-family: 'Inter', 'Noto Sans Telugu', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.bharat-ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.45);
}

.bharat-ai-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.18);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Inter', 'Noto Sans Telugu', system-ui, sans-serif;
}

.bharat-ai-drawer.open {
  right: 0;
}

.bharat-ai-header {
  background: #1e3a8a;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bharat-ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

.ai-chip-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chip-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.ai-chat-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.ai-msg.bot {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.ai-msg.user {
  background: #2563eb;
  color: #ffffff;
  align-self: flex-end;
  max-width: 85%;
}

.bharat-ai-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.bharat-ai-footer input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
}

.bharat-ai-footer button {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}
