/**
 * EBVN Manager V2 - Animation Styles
 * Reusable animations for the application
 */

/* Fade In Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

/* Table Row Animation */
.table-row-fade-in {
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

/* Apply animation delay to consecutive rows */
.table-row-fade-in:nth-child(1) { animation-delay: 0ms; }
.table-row-fade-in:nth-child(2) { animation-delay: 30ms; }
.table-row-fade-in:nth-child(3) { animation-delay: 60ms; }
.table-row-fade-in:nth-child(4) { animation-delay: 90ms; }
.table-row-fade-in:nth-child(5) { animation-delay: 120ms; }
.table-row-fade-in:nth-child(6) { animation-delay: 150ms; }
.table-row-fade-in:nth-child(7) { animation-delay: 180ms; }
.table-row-fade-in:nth-child(8) { animation-delay: 210ms; }
.table-row-fade-in:nth-child(9) { animation-delay: 240ms; }
.table-row-fade-in:nth-child(10) { animation-delay: 270ms; }
.table-row-fade-in:nth-child(n+11) { animation-delay: 300ms; }

/* Applying animations to all table rows via selectors */
.exam-moment-table tbody tr,
.candidate-table tbody tr,
.document-table tbody tr,
.exam-location-table tbody tr {
  opacity: 0;
  animation: fadeIn 0.3s ease-in forwards;
}

/* Slide Down Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-down {
  animation: slideDown 0.3s ease-out forwards;
}

/* Zoom In Animation */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zoom-in {
  animation: zoomIn 0.3s ease-out forwards;
}
