/* Swenzy AI Widget Styles */
#swenzy-ai-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

#swenzy-ai-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#swenzy-ai-toggle:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

.ai-pulse {
  animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

#swenzy-ai-chat {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#swenzy-ai-chat.hidden {
  opacity: 0;
  transform: scale(0.5) translateY(20px);
  pointer-events: none;
}

.ai-header {
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-header-info img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.ai-header-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.online-status {
  font-size: 11px;
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

#ai-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  transition: color 0.2s;
}

#ai-close:hover {
  color: #ef4444;
}

#ai-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#ai-messages::-webkit-scrollbar {
  width: 4px;
}

#ai-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.ai-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
}

.ai-msg.bot {
  align-self: flex-start;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.msg-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.bot .msg-content {
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
}

.user .msg-content {
  background: #3b82f6;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.ai-input-area {
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 10px;
}

#ai-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

#ai-input:focus {
  border-color: #3b82f6;
}

#ai-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #3b82f6;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#ai-send:hover {
  background: #2563eb;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  #swenzy-ai-chat {
    width: calc(100vw - 40px);
    height: 400px;
    right: -10px;
  }
}
