/* Active Jobs UI Styles */
#active-jobs-container {
	transition: all 0.3s ease;
	border: 1px solid #dbeafe;
	background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

#active-jobs-container .active-jobs-list {
	max-height: 200px;
	overflow-y: auto;
}

#active-jobs-container .active-jobs-list::-webkit-scrollbar {
	width: 4px;
}

#active-jobs-container .active-jobs-list::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 2px;
}

#active-jobs-container .active-jobs-list::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 2px;
}

#active-jobs-container .active-jobs-list::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Job status animations */
@keyframes pulse-blue {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

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

@keyframes pulse-yellow {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.6;
	}
}

.bg-blue-500.animate-pulse {
	animation: pulse-blue 2s infinite;
}

.bg-green-500.animate-pulse {
	animation: pulse-green 1.5s infinite;
}

.bg-yellow-500.animate-pulse {
	animation: pulse-yellow 2.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
	#active-jobs-container {
		margin-left: -0.75rem;
		margin-right: -0.75rem;
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	#active-jobs-container .active-jobs-list {
		max-height: 150px;
	}
}

/* Toast notification styles for job updates */
.toast-job-success {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: white;
}

.toast-job-error {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
}

.toast-job-info {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: white;
}

/* Variant history strip enhancements */
#variant-history {
	min-height: 0;
	transition: all 0.3s ease;
}

#variant-history:empty {
	display: none !important;
}

#variant-history > div {
	animation: slideInUp 0.3s ease-out;
}

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

/* Enhance thumbnail hover effects */
.image-thumbnail-shared {
	transition: all 0.2s ease;
}

.image-thumbnail-shared:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status pill animations for variant history */
.status-pill-variant-history {
	animation: fadeInScale 0.4s ease-out 0.2s both;
}

@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: translateX(-50%) scale(0.8);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) scale(1);
	}
}
