/* Fix Operations Loading States */

/* Spinning animation for loading state */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Button loading state */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Progress message styling */
.fix-progress-message {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #2563eb;
}

/* Error message styling */
.fix-error-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

/* Success state */
.fix-success {
    color: #16a34a;
}

/* Loading spinner sizing */
.fix-loading-spinner {
    width: 1rem;
    height: 1rem;
}

/* Smooth transitions */
.fix-button {
    transition: all 0.2s ease-in-out;
}

/* Summary Page Enhancements */

/* Pattern background for status card */
.pattern-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Card hover effects */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Gradient animations for buttons */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

/* Pulse animation for warnings */
@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-warning {
    animation: pulse-warning 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Copy confirmation blink */
@keyframes blink-border {
    0%, 100% {
        border-color: rgb(59, 130, 246);
        background-color: rgba(59, 130, 246, 0.05);
    }
    50% {
        border-color: rgb(34, 197, 94);
        background-color: rgba(34, 197, 94, 0.05);
    }
}

.blink-border {
    animation: blink-border 0.5s ease-in-out 3;
}

/* Card shadow transitions */
.shadow-lg {
    transition: box-shadow 0.3s ease-in-out;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Fade in animation for page load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Status badge animations */
@keyframes status-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.status-success-glow {
    animation: status-glow 2s infinite;
}

/* Loading shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Icon rotation on hover */
.hover\:rotate-12:hover svg {
    transform: rotate(12deg);
    transition: transform 0.3s ease;
}

/* Backdrop blur support */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Progress overlay for complex operations */
.fix-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fix-progress-modal {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.fix-progress-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.fix-progress-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fix-progress-step {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.fix-progress-step.active {
    color: #2563eb;
    font-weight: 500;
}

.fix-progress-step.completed {
    color: #16a34a;
}

.fix-progress-step-icon {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Pulse animation for active operations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Blinking border animation for copy to clipboard */
@keyframes blinkBorder {
    0%, 100% {
        border-color: rgb(209 213 219); /* gray-300 */
    }
    50% {
        border-color: rgb(59 130 246); /* blue-500 */
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
    }
}

.blink-border {
    animation: blinkBorder 0.5s ease-in-out infinite;
}