/* ==========================================================================
   Barta Prohor (বার্তা প্রহর) - Supplementary Stylesheet (Tailwind CSS Enhanced)
   ========================================================================== */

/* Instant Error Route Display Rules */
html.is-error-route #maintenance-view {
  display: none !important;
}

html.is-error-route #error-view {
  display: flex !important;
}

html.is-error-route #nav-home-btn {
  display: inline-flex !important;
}

/* Custom Modal Animation States */
#message-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#message-modal.active .modal-card {
  transform: scale(1);
}

/* Custom Toast Animation */
.toast-item {
  background: rgba(35, 3, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
