/* ==========================================================================
   LeadPulse Harvester Pro — Alexandria Editorial Style System
   Theme Tokens: Alexandria High-End Editorial ("The Digital Curator")
   ========================================================================== */

/* Base & Layout */
html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  background-color: #faf9fa;
  color: #1b1c1d;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #dbdadb;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c3c6d5;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.15);
  }
}

.animate-pulseGlow {
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Lead Row Cards */
.lead-row {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.lead-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 76, 178, 0.04);
  border-color: rgba(9, 76, 178, 0.08);
}

/* Filter Tabs Active State */
.filter-tab.active {
  background-color: #094cb2 !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(9, 76, 178, 0.2);
}

/* Terminal Log Lines */
#terminalBody {
  scrollbar-color: #5a5f63 #303031;
}

#terminalBody::-webkit-scrollbar-thumb {
  background: #5a5f63;
}

/* Star Buttons */
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-btn:hover {
  transform: scale(1.15);
}

/* Modal Overlay */
.modal-overlay {
  animation: fadeIn 0.2s ease-out forwards;
}

/* Toast Notifications */
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-success {
  background-color: #ffffff;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.toast-error {
  background-color: #ffffff;
  color: #991b1b;
  border-left: 4px solid #ba1a1a;
}

.toast-info {
  background-color: #ffffff;
  color: #00419d;
  border-left: 4px solid #094cb2;
}

/* ==========================================================================
   Live Harvesting Radar & Geo-Scan Animations
   ========================================================================== */
@keyframes radarSweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes radarPingRing {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.radar-sweep-beam {
  animation: radarSweep 2.2s linear infinite;
  transform-origin: center center;
}

.radar-ping-ring {
  animation: radarPingRing 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.radar-ping-ring-delayed {
  animation: radarPingRing 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  animation-delay: 1.2s;
}

