/* AIOMATIC.PK Floating AI Chatbot Styles */
#aiomatic-chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
}

#aiomatic-chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  border: none;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

#aiomatic-chat-toggle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.6);
}

#aiomatic-chat-toggle .chat-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

#aiomatic-chat-window {
  display: none;
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  flex-direction: column;
  overflow: hidden;
  animation: aiomaticFadeSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

#aiomatic-chat-window.active {
  display: flex;
}

@keyframes aiomaticFadeSlide {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.aiomatic-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #312e81;
}

.aiomatic-chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aiomatic-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
}

.aiomatic-chat-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.aiomatic-chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

.aiomatic-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.aiomatic-chat-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aiomatic-chat-close:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.aiomatic-chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #f8fafc;
}

.chat-msg {
  max-width: 86%;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 18px;
  word-break: break-word;
}

.chat-msg-bot {
  align-self: flex-start;
  background-color: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.chat-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-msg-time {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
}

.aiomatic-quick-chips {
  padding: 10px 16px;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.aiomatic-chip-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}

.aiomatic-chip-btn:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

.aiomatic-chat-input-area {
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.aiomatic-chat-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.aiomatic-chat-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.aiomatic-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #4f46e5;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.aiomatic-chat-send:hover {
  background: #4338ca;
}

.aiomatic-chat-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #10b981;
  color: #ffffff !important;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.aiomatic-chat-wa-cta:hover {
  background-color: #059669;
}
