/* ==========================
   Animations
========================== */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================
   Base / Layout Styles
========================== */
.animate-letter {
  display: inline-block;
  opacity: 0;
  animation: fadeIn 3s forwards infinite;
}

.animate-sequence {
  animation-delay: 100s; /* Delay before starting new cycle */
}

.remove-scroll-thumb {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;      /* Firefox */
}

.hover-rotate svg {
  transition: transform 0.3s ease-in-out;
}

.hover-rotate:hover svg {
  transform: rotate(-45deg);
}

/* ==========================
   Toast / Notification Styles
========================== */
.animate-fade-in {
  animation: fade-in 0.3s ease-in-out;
}

.toast-enter {
  transition: opacity 0.3s ease;
  opacity: 1;
}

.toast-exit {
  opacity: 0;
}

/* ==========================
   Modal / Dialog Z-Index
========================== */
dialog::backdrop {
  z-index: 9999 !important;
}

dialog.modal {
  z-index: 10000 !important;
}

#toast-container {
  z-index: 10001 !important;
}

/* ==========================
   Images / Media
========================== */
img {
  max-width: 100%;
  height: auto;
}

/* ==========================
   Performance Optimizations
========================== */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================
   Accessibility: Reduce Motion
========================== */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
