/* Progress Modal Enhancement Styles */

/* Progress bar animations */
#regenerationProgressBar {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 100%;
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Step indicator animations */
.step-indicator {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator.bg-green-500 {
    animation: stepComplete 0.6s ease-out;
}

@keyframes stepComplete {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Progress step transitions */
.regeneration-progress-step {
    transition: all 0.3s ease;
    padding: 8px 0;
    border-radius: 6px;
}

.regeneration-progress-step:hover {
    background-color: #f9fafb;
    transform: translateX(4px);
}

/* Modal entrance animation */
#regenerationProgressModal {
    animation: modalFadeIn 0.3s ease-out;
}

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

/* Button hover effects */
#regenerationViewPlanButton {
    transition: all 0.2s ease;
}

#regenerationViewPlanButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#regenerationRetryButton {
    transition: all 0.2s ease;
}

#regenerationRetryButton:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Error section styling */
#regenerationErrorSection {
    border-left: 4px solid #ef4444;
    animation: errorSlideIn 0.4s ease-out;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Success state styling */
.regeneration-progress-step.completed {
    background-color: #f0fdf4;
    border-left: 3px solid #22c55e;
    padding-left: 12px;
}

/* Current step highlighting */
.regeneration-progress-step.current {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding-left: 12px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .regeneration-progress-step {
        padding: 6px 0;
    }
    
    .step-indicator {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
    
    .step-indicator .text-xs {
        font-size: 10px;
    }
}

/* Loading spinner enhancement */
.step-indicator.bg-indigo-500 svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Progress text enhancement */
#regenerationCurrentStep {
    font-weight: 600;
    color: #1f2937;
}

#regenerationStatusMessage {
    color: #6b7280;
    font-style: italic;
}

/* Progress percentage enhancement */
#regenerationProgressPercent {
    font-weight: 600;
    color: #6366f1;
}

/* Modal backdrop enhancement */
#regenerationProgressModal .bg-gray-500 {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Navbar Interview Progress Card Styles */
.navbar-interview-progress-card {
    width: 280px;
    height: 40px;
    padding: 2px 8px;
    gap: 6px;
    border-radius: 6px;
    opacity: 1;
    background: rgba(245, 246, 255, 1);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0;
    white-space: nowrap;
}

/* Ensure the notification doesn't cause layout shifts */
.navbar-interview-progress-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    .navbar-interview-progress-card {
        position: static;
        width: 100%;
        max-width: 280px;
        margin: 0.5rem 0;
        white-space: normal; /* Allow wrapping on mobile */
    }
}