/* LIA Concierge Customer Service Widget Stylesheet */
:root {
  --lia-bg: #0a0a0f;
  --lia-bg-card: #14141f;
  --lia-bg-elevated: #1a1a2e;
  --lia-accent: #8b5cf6;
  --lia-accent-hover: #7c3aed;
  --lia-accent-light: #a78bfa;
  --lia-cyan: #06b6d4;
  --lia-text: #e4e4e7;
  --lia-text-muted: #a1a1aa;
  --lia-border: #27272a;
  --lia-success: #10b981;
}

#lia-concierge-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--lia-text);
}

/* Floating Launcher Button */
.lia-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20, 20, 31, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lia-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--lia-accent-light);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 28px rgba(139, 92, 246, 0.45);
}

.lia-avatar-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lia-accent);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
  animation: lia-pulse-halo 3s ease-in-out infinite;
}

@keyframes lia-pulse-halo {
  0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.6), 0 0 16px rgba(6, 182, 212, 0.3); }
  50% { box-shadow: 0 0 18px rgba(139, 92, 246, 0.9), 0 0 24px rgba(6, 182, 212, 0.6); }
}

.lia-launcher-info {
  display: flex;
  flex-direction: column;
}

.lia-launcher-title {
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--lia-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lia-launcher-status {
  font-size: 0.72rem;
  color: var(--lia-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

.lia-status-dot {
  width: 6px;
  height: 6px;
  background: var(--lia-success);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--lia-success);
}

/* Concierge Chat Window */
.lia-chat-window {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: rgba(20, 20, 31, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(139, 92, 246, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lia-chat-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.lia-chat-header {
  padding: 16px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(20, 20, 31, 0.95));
  border-bottom: 1px solid var(--lia-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lia-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lia-header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--lia-accent-light);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.lia-header-details h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.lia-header-details p {
  font-size: 0.75rem;
  color: var(--lia-text-muted);
}

.lia-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lia-icon-btn {
  background: none;
  border: none;
  color: var(--lia-text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lia-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Chat Body */
.lia-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lia-msg {
  display: flex;
  flex-direction: column;
  max-width: 86%;
  animation: lia-msg-in 0.25s ease forwards;
}

@keyframes lia-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lia-msg.lia {
  align-self: flex-start;
}

.lia-msg.user {
  align-self: flex-end;
}

.lia-msg-sender {
  font-size: 0.72rem;
  color: var(--lia-accent-light);
  font-weight: 600;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lia-msg-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lia-msg.lia .lia-msg-bubble {
  background: var(--lia-bg-elevated);
  border: 1px solid var(--lia-border);
  color: var(--lia-text);
  border-bottom-left-radius: 4px;
}

.lia-msg.user .lia-msg-bubble {
  background: linear-gradient(135deg, var(--lia-accent), var(--lia-accent-hover));
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* In-Chat Product Recommendation Card */
.lia-product-card {
  margin-top: 10px;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lia-product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lia-product-badge {
  font-size: 0.68rem;
  background: rgba(139, 92, 246, 0.25);
  color: var(--lia-accent-light);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.lia-product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lia-accent-light);
}

.lia-product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.lia-product-desc {
  font-size: 0.78rem;
  color: var(--lia-text-muted);
}

.lia-product-action {
  background: var(--lia-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.lia-product-action:hover {
  background: var(--lia-accent-hover);
  transform: translateY(-1px);
}

/* Quick Action Chips */
.lia-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(10, 10, 15, 0.4);
  border-top: 1px solid var(--lia-border);
}

.lia-chip {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid var(--lia-border);
  color: var(--lia-text-muted);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.lia-chip:hover {
  border-color: var(--lia-accent);
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
}

/* Input Area */
.lia-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--lia-border);
  display: flex;
  gap: 8px;
  background: rgba(20, 20, 31, 0.98);
}

.lia-chat-input {
  flex: 1;
  background: var(--lia-bg-card);
  border: 1px solid var(--lia-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
}

.lia-chat-input:focus {
  border-color: var(--lia-accent);
}

.lia-send-btn {
  background: var(--lia-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.lia-send-btn:hover {
  background: var(--lia-accent-hover);
}
