/* =========================================
   Pizzaria Bella — app.css
   ========================================= */

/* Scrollbar hide utility */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #252525 25%, #333 50%, #252525 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 0.5rem;
}

/* Slide-in alerts */
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
.alert-slide { animation: slideInRight 0.35s ease-out; }

/* SweetAlert2 application theme */
.app-swal-popup {
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-swal-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.app-swal-html {
  font-size: .92rem;
  line-height: 1.45;
}

.app-swal-confirm,
.app-swal-cancel,
.app-swal-deny {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 18px;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.app-swal-confirm {
  background: var(--color-primary, #2563EB);
  color: #fff;
  box-shadow: 0 10px 22px rgb(var(--color-primary-rgb, 37 99 235) / .22);
}

.app-swal-confirm:hover {
  background: var(--color-primary-hover, #1D4ED8);
  transform: translateY(-1px);
}

.app-swal-cancel {
  background: #f1f5f9;
  color: #475569;
}

.app-swal-cancel:hover {
  background: #e2e8f0;
}

.app-swal-deny {
  background: #dc2626;
  color: #fff;
}

.app-swal-toast {
  border-radius: 14px;
  padding: 12px 14px;
}

.app-alert-fallback-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 32px));
  border-radius: 14px;
  padding: 13px 16px;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .22);
  transition: opacity .25s ease, transform .25s ease;
}

html.dark .app-swal-popup,
body.dark .app-swal-popup,
html[data-theme="dark"] .app-swal-popup,
body[data-theme="dark"] .app-swal-popup {
  border-color: rgba(51, 65, 85, .95);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

html.dark .app-swal-cancel,
body.dark .app-swal-cancel,
html[data-theme="dark"] .app-swal-cancel,
body[data-theme="dark"] .app-swal-cancel {
  background: #1f2937;
  color: #d1d5db;
}

html.dark .app-swal-cancel:hover,
body.dark .app-swal-cancel:hover,
html[data-theme="dark"] .app-swal-cancel:hover,
body[data-theme="dark"] .app-swal-cancel:hover {
  background: #374151;
}

/* Bounce-gentle for floating elements */
@keyframes bounceGentle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
.animate-bounce-gentle { animation: bounceGentle 2s infinite; }

/* Soft glow for high-priority CTAs */
@keyframes pharmaGlowPrimary {
  0%, 100% {
    box-shadow:
      0 14px 34px rgb(var(--color-primary-rgb) / .28),
      0 0 0 0 rgb(var(--color-primary-rgb) / .28);
  }
  50% {
    box-shadow:
      0 18px 44px rgb(var(--color-primary-rgb) / .42),
      0 0 0 10px rgb(var(--color-primary-rgb) / 0);
  }
}

@keyframes pharmaGlowLight {
  0%, 100% {
    box-shadow:
      0 12px 28px rgba(255, 255, 255, .18),
      0 0 0 0 rgba(255, 255, 255, .24);
  }
  50% {
    box-shadow:
      0 18px 38px rgb(var(--color-primary-rgb) / .24),
      0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.pharma-glow-primary {
  animation: pharmaGlowPrimary 2.6s ease-in-out infinite;
}

.pharma-glow-light {
  animation: pharmaGlowLight 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pharma-glow-primary,
  .pharma-glow-light {
    animation: none;
  }
}

/* Card shadows */
.shadow-card       { box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04); }
.shadow-card-hover { box-shadow: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06); }

/* Admin tables: preserve readable columns and scroll inside the card on mobile. */
.admin-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.admin-table-scroll > table {
  min-width: var(--admin-table-min-width, 640px);
}

.admin-table-scroll::-webkit-scrollbar {
  height: 7px;
}

.admin-table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.admin-table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

@media print {
  .admin-table-scroll {
    overflow: visible;
  }

  .admin-table-scroll > table {
    min-width: 0;
  }
}

