/* Liza AI Assistant Widget Styles (Hubris style in Light Blue Theme) */

#liza-widget-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
}

/* Floating Launcher Button */
.liza-launcher-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.liza-launcher-btn:hover {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.35);
}

.liza-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  border: 2px solid #0284c7;
  flex-shrink: 0;
}

.liza-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-cover: cover;
}

.liza-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 9999px;
}

.liza-launcher-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.liza-launcher-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.liza-launcher-sub {
  font-size: 11px;
  color: #0284c7;
  font-weight: 600;
}

/* Popup Drawer / Modal */
.liza-chat-drawer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  height: 620px;
  max-height: calc(100vh - 48px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

.liza-chat-drawer.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header */
.liza-drawer-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.liza-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.liza-header-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.liza-header-info span {
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.liza-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.liza-action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.liza-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Chat Body */
.liza-drawer-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  scroll-behavior: smooth;
}

.liza-drawer-body::-webkit-scrollbar {
  width: 5px;
}
.liza-drawer-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.liza-drawer-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.liza-drawer-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Welcome Hero inside Chat */
.liza-welcome-box {
  text-align: center;
  padding: 16px 12px 10px 12px;
}

.liza-welcome-avatar {
  width: 68px;
  height: 68px;
  border-radius: 9999px;
  border: 3px solid #0284c7;
  margin: 0 auto 10px auto;
  overflow: hidden;
  box-shadow: 0 8px 16px -4px rgba(2, 132, 199, 0.3);
}

.liza-welcome-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.liza-welcome-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.liza-welcome-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Quick Question Buttons */
.liza-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.liza-prompt-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: #1e293b;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.liza-prompt-btn:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}

/* Messages */
.liza-message {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.liza-message.user {
  flex-direction: row-reverse;
}

.liza-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 1px solid #0284c7;
  overflow: hidden;
  flex-shrink: 0;
}

.liza-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.liza-msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  word-break: break-word;
}

.liza-message.bot .liza-msg-bubble {
  background: #f1f5f9;
  color: #0f172a;
  border-top-left-radius: 4px;
  border: 1px solid #e2e8f0;
}

.liza-message.user .liza-msg-bubble {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-top-right-radius: 4px;
}

/* Typing Indicator */
.liza-typing-indicator {
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  align-items: center;
}

.liza-typing-dot {
  width: 6px;
  height: 6px;
  background: #0284c7;
  border-radius: 9999px;
  animation: lizaBounce 1.4s infinite ease-in-out both;
}

.liza-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.liza-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes lizaBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Footer / Input Bar */
.liza-drawer-footer {
  padding: 12px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.liza-input-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  transition: border-color 0.15s;
}

.liza-input-wrapper:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.liza-chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #0f172a;
  background: transparent;
  font-family: inherit;
}

.liza-send-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.liza-send-btn:hover {
  background: #0369a1;
}

.liza-send-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}
