/* =========================================================================
   ANIMATIONS & DYNAMIC UI EFFECTS SYSTEM
   ========================================================================= */

/* Fade & Slide In Animations */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-panel.active {
  animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Slide In */
@keyframes toastSlideIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast {
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pulse Glow Effect */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.field input:focus, .field select:focus, .field textarea:focus {
  animation: pulseGlow 1.5s infinite;
}

/* Button Ripple & Active Touch Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease-out, height 0.4s ease-out;
}

.btn:active::after {
  width: 200px;
  height: 200px;
}

/* Modal Zoom & Backdrop Blur */
@keyframes modalZoom {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  animation: modalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Seal Arc Stroke Animation */
#sealArc {
  transition: stroke-dashoffset 0.5s ease;
}
