/* ============================================
   AI POINTING SYSTEM
   ============================================ */

/* Overlay Container */
.ai-pointer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-pointer-overlay.visible {
  opacity: 1;
}

/* Backdrop */
.ai-pointer-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: all;
  cursor: pointer;
}

/* Highlight Border */
.ai-pointer-highlight {
  border: 3px solid var(--brokerly-primary);
  box-shadow: 
    0 0 0 4px rgba(87, 204, 234, 0.2),
    0 0 20px rgba(87, 204, 234, 0.4);
  pointer-events: none;
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

.ai-pointer-highlight.pulse {
  animation: aiPointerPulse 2s ease-in-out infinite;
}

@keyframes aiPointerPulse {
  0%, 100% {
    box-shadow: 
      0 0 0 4px rgba(87, 204, 234, 0.2),
      0 0 20px rgba(87, 204, 234, 0.4);
  }
  50% {
    box-shadow: 
      0 0 0 8px rgba(87, 204, 234, 0.3),
      0 0 30px rgba(87, 204, 234, 0.6);
  }
}

/* Message Callout */
.ai-pointer-message {
  z-index: 10002;
  pointer-events: none;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

.ai-pointer-content {
  background: var(--modern-card-background);
  padding: 16px;
  border-radius: 16px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 0 0 1px var(--brokerly-border-medium);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  min-width: 280px;
  pointer-events: all;
}

/* Header */
.ai-pointer-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-pointer-avatar {
  flex-shrink: 0;
}

.ai-pointer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-pointer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--brokerly-text-primary);
}

.ai-pointer-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--brokerly-text-secondary);
}

.ai-pointer-close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--brokerly-text-secondary);
  transition: color 0.2s ease;
  width: 16px;
  height: 16px;
}

.ai-pointer-close:hover {
  color: var(--brokerly-text-primary);
}

/* Message Text */
.ai-pointer-text {
  color: var(--brokerly-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* Action Button */
.ai-pointer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background-color: var(--brokerly-primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-pointer-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(87, 204, 234, 0.3);
}

.ai-pointer-action:active {
  transform: scale(0.98);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .ai-pointer-content {
    max-width: 90vw;
    min-width: 0;
  }
}

