/* Animation Styles */

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

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* Fade Up Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.4s ease-out;
}

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.3s ease-out;
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 0.4s ease-in-out;
}

/* Slide In Right Animation */
@keyframes slideInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

/* Slide In Left Animation */
@keyframes slideInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 0.3s ease-out;
}

/* Bounce Animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.bounce {
  animation: bounce 0.8s ease;
}

/* Shake Animation */
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.6s ease;
}

/* Flash Animation */
@keyframes flash {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.5;
  }
}

.flash {
  animation: flash 0.8s ease;
}

/* Fade Out Animation */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-out {
  animation: fadeOut 0.3s ease-in-out forwards;
}

/* Fade Down Animation */
@keyframes fadeDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.fade-down {
  animation: fadeDown 0.4s ease-in forwards;
}

/* Scale Out Animation */
@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

.scale-out {
  animation: scaleOut 0.3s ease-in forwards;
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rotate {
  animation: rotate 1s linear infinite;
}

/* Highlight Animation */
@keyframes highlight {
  0% {
    background-color: transparent;
  }
  30% {
    background-color: rgba(63, 81, 181, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.highlight {
  animation: highlight 1.5s ease;
}

/* Status Change Animation */
@keyframes statusChange {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.status-change {
  animation: statusChange 0.5s ease;
}

/* Table Row Hover Effect */
.data-table tbody tr {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.data-table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}

/* Button Hover Effects */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Status Badge Animations */
.status-badge {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.status-badge:hover {
  transform: scale(1.05);
}

/* Modal Animation */
.modal {
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Staggered Row Animation */
.data-table tbody tr {
  opacity: 0;
  animation: fadeInRow 0.3s ease forwards;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.5s; }

@keyframes fadeInRow {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Action Button Animation */
.btn-action {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-action:hover {
  transform: scale(1.1);
}

.btn-action:active {
  transform: scale(0.95);
}

/* Filter Section Animation */
.filter-section {
  animation: fadeIn 0.5s ease;
}

.filter-section input,
.filter-section select {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-section input:focus,
.filter-section select:focus {
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.4);
  border-color: var(--color-primary);
}

/* Pagination Button Animation */
.btn-page {
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-page:hover:not(:disabled):not(.active) {
  transform: translateY(-1px);
}

.btn-page.active {
  transform: scale(1.05);
}

/* Search Animation */
.search-field input {
  transition: width 0.3s ease, box-shadow 0.2s ease;
}

.search-field input:focus {
  box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.4);
}

/* Sidebar Navigation Animation */
.navigation li {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.navigation li:hover {
  transform: translateX(5px);
}

/* Timeline Animation */
.timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.5s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

/* Detail Item Animation */
.detail-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.4s ease forwards;
}

.detail-section:nth-child(1) .detail-item:nth-child(1) { animation-delay: 0.05s; }
.detail-section:nth-child(1) .detail-item:nth-child(2) { animation-delay: 0.1s; }
.detail-section:nth-child(1) .detail-item:nth-child(3) { animation-delay: 0.15s; }
.detail-section:nth-child(1) .detail-item:nth-child(4) { animation-delay: 0.2s; }
.detail-section:nth-child(1) .detail-item:nth-child(5) { animation-delay: 0.25s; }
.detail-section:nth-child(1) .detail-item:nth-child(6) { animation-delay: 0.3s; }

.detail-section:nth-child(2) .detail-item:nth-child(1) { animation-delay: 0.1s; }
.detail-section:nth-child(2) .detail-item:nth-child(2) { animation-delay: 0.15s; }
.detail-section:nth-child(2) .detail-item:nth-child(3) { animation-delay: 0.2s; }
.detail-section:nth-child(2) .detail-item:nth-child(4) { animation-delay: 0.25s; }
.detail-section:nth-child(2) .detail-item:nth-child(5) { animation-delay: 0.3s; }
.detail-section:nth-child(2) .detail-item:nth-child(6) { animation-delay: 0.35s; } 