/* Custom styling & animations for Calendar Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-sans);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.7);
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dark .glass-panel {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Calendar Day Cell Transition */
.calendar-day-cell {
  min-height: 110px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day-cell:hover {
  background-color: rgba(59, 130, 246, 0.04);
}
.dark .calendar-day-cell:hover {
  background-color: rgba(59, 130, 246, 0.08);
}

/* Agency Color Accents */
.badge-fama {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.dark .badge-fama {
  background-color: rgba(6, 95, 70, 0.25);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.3);
}

.badge-lkim {
  background-color: #f0f9ff;
  color: #075985;
  border: 1px solid #bae6fd;
}
.dark .badge-lkim {
  background-color: rgba(7, 89, 133, 0.25);
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.3);
}

.badge-lpp {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.dark .badge-lpp {
  background-color: rgba(146, 64, 14, 0.25);
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.3);
}

/* Pulse animation for live sync */
@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}
.live-pulse {
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Modal animation & Visibility */
.modal-overlay {
  transition: opacity 0.2s ease-out;
}
.modal-content {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
}
.modal-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.modal-overlay:not(.modal-hidden) {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}
.modal-hidden .modal-content {
  transform: scale(0.95) translateY(10px);
}

/* Print styles */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .calendar-day-cell {
    min-height: 80px;
    border: 1px solid #ddd !important;
  }
}
