/* Modern Custom Overrides for eFood Website */

/* Custom Animations */
@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseBorder {
  0%, 100% {
    border-color: rgba(239, 68, 68, 0.2);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.6);
  }
}

/* Animations Trigger Classes */
.animate-slide-down {
  animation: slideDown 0.3s ease-out forwards;
}

.pulse-border {
  animation: pulseBorder 2s infinite;
}

/* Preloader Animation Keyframes */
#animation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* Custom Scrollbar styled for modern web browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* Dark Mode Scrollbars */
.dark ::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

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

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

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dark Mode Transitions */
body, header, main, footer, div, section, button, input, textarea {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Preloader custom cycle keyframes */
.animation-image {
  animation: bounce 1.5s infinite alternate;
}

/* SweetAlert Overrides for modern rounded look */
.swal2-popup {
  border-radius: 1.5rem !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.swal2-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
}

.swal2-styled.swal2-confirm {
  background-color: #ef4444 !important;
  border-radius: 0.75rem !important;
}

/* Hide Debugbar / Ignition / Bottom-Left floating buttons */
#phpdebugbar,
.phpdebugbar,
.phpdebugbar-minimized,
.phpdebugbar-restore-btn,
#ignition-launcher,
[id*="ignition"],
[class*="ignition"],
iframe[title*="Ignition"],
iframe[src*="ignition"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}