/* 
 * Custom application styles
 * Add your custom styles here to override or extend Tailwind CSS
 */

/* Make sure the dashboard layout fills the height properly */
html,
body {
  height: 100%;
  margin: 0;
}

.h-screen {
  height: 100vh;
}

/* Fix any potential overflow issues */
.overflow-hidden {
  overflow: hidden !important;
}

/* Ensure flex container works properly */
.flex-1 {
  flex: 1 1 0% !important;
}

/* Make sure overflow auto works correctly */
.overflow-auto {
  overflow: auto !important;
}

/* Modal positioning and transitions */
.modal-container {
  transition: all 0.3s ease-in-out;
}

.modal-container [data-turbo-modal-target="content"] {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: scale(1);
  opacity: 1;
}

/* Ensure modal content doesn't exceed available space */
.modal-container [data-turbo-modal-target="content"] {
  max-height: calc(100vh - 8rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Make modal body scrollable while keeping header fixed */
.modal-container [data-turbo-modal-target="content"]>div:last-child {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 12rem);
}

/* Smooth overlay transitions */
[data-turbo-modal-target="overlay"] {
  transition: opacity 0.3s ease-in-out;
}

@keyframes highlight-glow {
  0% {
    box-shadow: 0 0 0 rgba(234, 88, 12, 0);
    background-color: rgba(254, 215, 170, 0.7);
    /* orange-200 with opacity */
  }

  50% {
    box-shadow: 0 0 15px rgba(8, 245, 67, 0.6);
    background-color: rgba(254, 215, 170, 0.4);
    /* orange-200 with lower opacity */
  }

  100% {
    box-shadow: 0 0 0 rgba(234, 88, 12, 0);
    background-color: transparent;
  }
}

.animate-highlight-new {
  animation: highlight-glow 3s ease-in-out;
}

/* Restaurant Menu Styles */

/* Animations for notifications */
@keyframes slide-in {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-out {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.animate-slide-in {
  animation: slide-in 0.3s forwards;
}

.animate-slide-out {
  animation: slide-out 0.3s forwards;
}

/* Restaurant navigation transparency transition */
.restaurant-nav-transparent {
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.restaurant-nav-transparent.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}