/* Flyxone Library Management System - Custom Styles & Print Framework */
:root {
  --primary-blue: #1e3a8a;
  --primary-blue-dark: #172554;
  --emerald-green: #10b981;
  --amber-yellow: #f59e0b;
  --rose-red: #ef4444;
  --slate-grey: #64748b;
}

/* 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;
}

/* Live Sync Pill Indicator */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.3s ease;
}
.sync-synced {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.sync-synced .sync-dot {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.sync-updating {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.sync-updating .sync-dot {
  background-color: #3b82f6;
  animation: pulse-dot 1s infinite;
}
.sync-offline {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.sync-offline .sync-dot {
  background-color: #f59e0b;
}
.sync-failed {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.sync-failed .sync-dot {
  background-color: #ef4444;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sync-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  display: inline-block;
}

/* Seat Grid Status Colors */
.seat-available {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}
.seat-available:hover {
  background-color: #d1fae5;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.seat-filled {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  cursor: not-allowed;
}

.seat-pending {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}

.seat-disabled {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #64748b;
  cursor: not-allowed;
}

/* Toast Notification Styles */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast-msg {
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Print Styles for QR Code Posters & Confirmation Receipts */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white;
    color: black;
  }
  .no-print {
    display: none !important;
  }
}
