/* ==========================================================================
   APEX SCHOLARS ACADEMY - ENHANCED MOTION ENGINE & TAILWIND UTILITIES
   ========================================================================== */

/* 1. CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b132b;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* 2. REVEAL ON SCROLL ANIMATION */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 3. SLIDE-OVER MOBILE DRAWER STATES */
#mobile-drawer.active {
  pointer-events: auto !important;
  opacity: 1 !important;
}

#mobile-drawer.active #mobile-drawer-panel {
  transform: translateX(0) !important;
}

/* 4. MODALS & LIGHTBOX ACTIVE STATES */
.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
}

/* 5. TOAST NOTIFICATION CONTAINER */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #f97316;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* 6. BUTTON SPINNER STATE */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-bounce-slow {
  animation: bounceSlow 4s ease-in-out infinite;
}