/* Loading spinner animation */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Status indicator animations */
.status-pending,
.status-success,
.status-failed {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Success checkmark animation */
.status-success > div:first-child {
  animation: scaleIn 0.5s ease-out;
}

/* Failed cross animation */
.status-failed > div:first-child {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Status text color transitions */
#statusText {
  transition: color 0.3s ease;
}

#statusText.pending {
  color: #f59e0b;
}

#statusText.success {
  color: #10b981;
}

#statusText.failed {
  color: #ef4444;
}

/* Form input focus transitions */
input:focus,
select:focus {
  transition: all 0.2s ease;
}

/* Button hover and disabled states */
button {
  transition: all 0.2s ease;
}

/* Status container slide-in animation */
#statusContainer {
  animation: slideIn 0.3s ease-out;
}

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

/* Smooth transitions for status display updates */
#statusDisplay {
  transition: all 0.3s ease;
}

/* Details/summary styling */
details {
  overflow: hidden;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details[open] > summary {
  border-bottom: 1px solid #e5e7eb;
}

/* Card shadow on hover */
.bg-white.rounded-lg {
  transition: box-shadow 0.3s ease;
}

/* Pulse animation for pending status */
.status-pending .spinner {
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  animation: spin 1s linear infinite, pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}
