/* ==========================================================================
   BTI TECHNICAL CONSULTATION DESK & WHATSAPP DIRECT CONNECT
   ARCHITECTURAL LIGHT THEME COMPATIBLE — ALL WEBPAGES
   ========================================================================== */

/* Floating Dock Container */
.bti-global-floating-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* WhatsApp One-Click Direct Pill */
.bti-dock-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bti-dock-whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px -4px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.bti-wa-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: btiWaPulse 1.8s infinite;
}

@keyframes btiWaPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Hermes AI Trigger Button */
.bti-dock-hermes-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #4f46e5;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px -4px rgba(79, 70, 229, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bti-dock-hermes-btn:hover {
  background: #4338ca;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px -4px rgba(79, 70, 229, 0.6);
}

/* Realtime Hermes Chat Window */
.bti-hermes-window {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 50px -12px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100000;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bti-hermes-window.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.95);
  display: none;
}

/* Window Header */
.bti-hermes-header {
  background: #0f172a;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bti-hermes-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bti-hermes-avatar {
  width: 34px;
  height: 34px;
  background: #4f46e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.bti-hermes-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}
.bti-hermes-close:hover {
  color: #ffffff;
}

/* Chat Messages Area */
.bti-hermes-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8fafc;
}

.bti-msg-bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.bti-msg-bubble.bot {
  align-self: flex-start;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.bti-msg-bubble.user {
  align-self: flex-end;
  background: #4f46e5;
  color: #ffffff;
}

/* Quick Inquiry Chips */
.bti-hermes-chips {
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bti-chip-btn {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bti-chip-btn:hover {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #4f46e5;
}

/* Chat Input Bar */
.bti-hermes-input-bar {
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 10px;
}

.bti-hermes-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font-size: 0.88rem;
  background: #f8fafc;
  color: #0f172a;
}
.bti-hermes-input:focus {
  outline: none;
  border-color: #4f46e5;
  background: #ffffff;
}

.bti-hermes-send-btn {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bti-hermes-send-btn:hover {
  background: #4338ca;
}

/* Responsive adjustment */
@media (max-width: 480px) {
  .bti-hermes-window {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    height: calc(100vh - 100px);
  }
  .bti-global-floating-dock {
    bottom: 16px;
    right: 16px;
  }
}
