/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */

/* Main content area transitions */
.page-content {
  transition: opacity 0.3s ease, transform 0.3s ease !important;
}

/* Fade-in animation for content elements */
.page-content > * {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

/* Staggered animation delays for child elements */
.page-content > *:nth-child(1) { animation-delay: 0.05s; }
.page-content > *:nth-child(2) { animation-delay: 0.1s; }
.page-content > *:nth-child(3) { animation-delay: 0.15s; }
.page-content > *:nth-child(4) { animation-delay: 0.2s; }
.page-content > *:nth-child(5) { animation-delay: 0.25s; }
.page-content > *:nth-child(n+6) { animation-delay: 0.3s; }

/* Fade-in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make sure fixed elements stay fixed */
.navbar-top,
.sidebar {
  transition: none !important;
}

/* Active page indicator animation */
#side-nav .nav-item.active > a {
  position: relative;
  overflow: hidden;
}

#side-nav .nav-item.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #364a63, #ffffff);
  animation: slideIn 0.4s ease forwards;
  transform-origin: left center;
}

@keyframes slideIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Smooth hover transitions for sidebar items */
#side-nav .nav-item a {
  transition: transform 0.2s ease !important;
}

#side-nav .nav-item a:hover {
  transform: scale(1.1) !important; /* Size effect only */
}

/* PMD_RESERVATIONS2_SIDE_MENU_NO_ENTRY_ANIMATION_V1_START */

/*
 * Reservations2 renders Side Menu 2 as a direct child of
 * .page-content. It must not inherit the generic page entry
 * animation intended only for page content panels.
 */
.page-content > #pmd-side-menu2 {
  animation: none !important;
  animation-name: none !important;
  animation-delay: 0s !important;
  animation-duration: 0s !important;

  opacity: 1 !important;
  transform: none !important;
}

/*
 * Preserve the fixed geometry during the first painted frame.
 */
body #pmd-side-menu2 {
  top: 14px !important;
  bottom: 14px !important;
}

/* PMD_RESERVATIONS2_SIDE_MENU_NO_ENTRY_ANIMATION_V1_END */
