@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..600;1,6..72,400..600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-primary: #F9F8F6;
  --bg-card: #FFFFFF;
  --text-main: #1F1F1F;
  --text-muted: #6B7280;
  --border-color: #E5E7EB;
  --sidebar-bg: #FAF9F6;
  --sidebar-active: #27272A;
}

.dark {
  --bg-primary: #121214;
  --bg-card: #1C1C1F;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --border-color: #2E2E33;
  --sidebar-bg: #161619;
  --sidebar-active: #3F3F46;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.font-serif-heading {
  font-family: 'Newsreader', serif;
}

/* Card Hover & Shadow Effects */
.crm-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.crm-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}

/* Scanner Animation Grid */
@keyframes scanLine {
  0% { top: 0%; opacity: 0.8; }
  50% { opacity: 1; }
  100% { top: 98%; opacity: 0.8; }
}

.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4285F4, #34A853, #FBBC05, #EA4335, transparent);
  box-shadow: 0 0 15px #4285F4;
  animation: scanLine 2s ease-in-out infinite alternate;
}

.scanner-frame {
  border: 2px dashed #D1D5DB;
  background-color: #FFFFFF;
}

.dark .scanner-frame {
  border-color: #374151;
  background-color: #1F2937;
}

/* Google Lens Bounding Box & Ripple Animations */
@keyframes lensPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.lens-target-glow {
  animation: lensPulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(66, 133, 244, 0.6);
}

.lens-box-highlight {
  border: 1.5px solid #4285F4;
  background-color: rgba(66, 133, 244, 0.12);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lens-box-highlight:hover {
  background-color: rgba(66, 133, 244, 0.25);
  border-color: #34A853;
  transform: scale(1.02);
}

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

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

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

.dark ::-webkit-scrollbar-thumb {
  background: #4B5563;
}
