/* Custom styles for Custodia Express */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Image preview thumbnails */
.preview-thumbnail {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid #e2e8f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.preview-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Print specific styles for counter poster & daily report */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, header, nav, #tickets-container, #empty-state, .grid-cols-2.sm\:grid-cols-4, #btn-open-scanner, #btn-open-daily-report {
    display: none !important;
  }
  .print-page {
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1.5cm !important;
  }

  /* When printing daily report */
  #daily-report-modal {
    position: static !important;
    display: block !important;
    background: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #daily-report-modal > div {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
  #daily-report-modal .sticky, #daily-report-modal .border-t {
    display: none !important;
  }
}

/* Toast Notification */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Modal animation */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.open .modal-content {
  transform: scale(1);
}
