/* Custom styles */
.error-message {
  animation: fadeIn 0.3s ease-in-out;
  background-color: #fee2e2;
  border-left: 4px solid #dc2626;
  padding: 1rem;
  margin: 1rem 0;
  color: #991b1b;
  border-radius: 0.375rem;
}

.success-message {
  background-color: #dcfce7;
  border-left: 4px solid #16a34a;
  padding: 1rem;
  margin: 1rem 0;
  color: #166534;
  border-radius: 0.375rem;
}

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

/* Progress bar animation */
#progressBar {
  transition: width 0.5s ease-in-out;
}

/* Modal animations */
.modal-enter {
  animation: modalEnter 0.3s ease-out;
}

.modal-backdrop-enter {
  animation: backdropEnter 0.3s ease-out;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes backdropEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Status colors and badges */
.status-created {
  color: #6b7280;
}
.status-queued {
  color: #3b82f6;
}
.status-processing {
  color: #f59e0b;
}
.status-completed {
  color: #10b981;
}
.status-failed {
  color: #ef4444;
}
.status-timeout {
  color: #ef4444;
}

.status-badge {
  position: relative;
}

.status-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
}

/* Form improvements */
input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input:focus,
select:focus {
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Button hover effect */
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table improvements */
tr:hover {
  background-color: rgba(99, 102, 241, 0.05);
}

.expandable-row {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive table improvements */
@media (max-width: 640px) {
  .overflow-x-auto {
    margin: 0 -1rem;
    padding: 0 1rem;
  }
}
