/* Modern Dashboard Stylesheet for Iglesia Los Amigos */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-navy: #0B2545;
  --primary-blue: #134074;
  --accent-gold: #EE964B;
  --accent-coral: #E06D53;
  --accent-emerald: #10B981;
  --bg-canvas: #F8FAFC;
  --card-bg: #FFFFFF;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-canvas);
  color: #1E293B;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism Cards */
.stat-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px -2px rgba(11, 37, 69, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease-in-out;
}

.stat-card:hover {
  box-shadow: 0 10px 25px -4px rgba(19, 64, 116, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Pulse Glow Animation for WhatsApp */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-wa {
  animation: wa-pulse 2.2s infinite;
}

/* ApexCharts Tweaks */
.apexcharts-canvas {
  margin: 0 auto;
}

.apexcharts-tooltip {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
}

/* Differentiated Agency Footer Section */
.agency-footer-section {
  background: linear-gradient(180deg, #09121F 0%, #050A12 100%);
  border-top: 2px solid rgba(59, 130, 246, 0.35);
  position: relative;
  overflow: hidden;
}

.agency-footer-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3B82F6, #10B981, transparent);
}

/* ================= SCROLL REVEAL ANIMATIONS ================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ================= PRINT MEDIA STYLES ================= */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  /* Hide interactive controls when printing */
  header button,
  header a,
  .no-print,
  #btn-print-report,
  #btn-export-excel,
  #btn-export-csv,
  #btn-reset-filters,
  #table-search-input,
  .table-pagination-controls,
  .whatsapp-cta-link {
    display: none !important;
  }

  header {
    background: #0B2545 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
    position: static !important;
  }

  .stat-card {
    box-shadow: none !important;
    border: 1px solid #E2E8F0 !important;
    page-break-inside: avoid;
  }

  .agency-footer-section {
    background: #09121F !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-before: auto;
  }
}
