/* Stili Custom per Digital Menù by NP Solution */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Transizioni fluide generali */
a, button, input, select, textarea {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effetto elevazione card su hover */
.hover-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
}

/* Modale */
.modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-panel {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-backdrop.active .modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Mobile Drawer Navigation */
.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Toggle Switch Interattivo */
.dish-toggle-btn {
  cursor: pointer;
  outline: none;
  user-select: none;
}
.dish-toggle-btn.active {
  background-color: #005c55 !important;
}
.dish-toggle-btn.active .toggle-knob {
  transform: translateX(20px);
}
.dish-toggle-btn:not(.active) {
  background-color: #d8dadc !important;
}
.dish-toggle-btn:not(.active) .toggle-knob {
  transform: translateX(0);
}

/* Toast di Notifica */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Glow animato per l'anteprima */
@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 25px -5px rgba(13, 148, 136, 0.3);
  }
  50% {
    box-shadow: 0 0 35px 2px rgba(13, 148, 136, 0.5);
  }
}
.glow-pulse {
  animation: softPulse 4s infinite ease-in-out;
}

/* Stile custom per la scrollbar interna se necessaria */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #bdc9c6;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #6e7977;
}

/* Nascondi completamente scrollbar orizzontale o verticale */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Badge di stato per piatti */
.badge-status-disponibile {
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}
.badge-status-esaurito {
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}
.badge-status-prenotazione {
  background-color: #fef7e0;
  color: #b06000;
  border: 1px solid #feefc3;
}
.badge-status-nascosto {
  background-color: #f1f3f4;
  color: #5f6368;
  border: 1px solid #dadce0;
}

