/* Async Status Container Styles */

.async-status-container {
    margin: 30px auto;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 30px;
    border: 1px solid #e5e7eb;
}

.async-status-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.async-status-message {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 25px;
}

/* Progress Bar */
.async-progress-container {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.async-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Time Estimate */
.async-time-estimate {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 30px;
}

.async-time-estimate span {
    font-weight: 500;
    color: #374151;
}

/* Status Steps */
.async-status-steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 25px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.status-step.active {
    opacity: 1;
}

.status-step.completed {
    opacity: 1;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 8px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.status-step.active .step-icon,
.status-step.completed .step-icon {
    filter: grayscale(0%);
}

.status-step.active .step-icon {
    animation: pulse 2s infinite;
}

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

.step-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.status-step.active .step-text,
.status-step.completed .step-text {
    color: #1f2937;
}

/* Cancel Button */
.cancel-btn {
    display: block;
    margin: 0 auto;
    padding: 8px 16px;
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

/* Error State */
.async-status-message.error {
    color: #ef4444;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
    .async-status-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .async-status-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .status-step {
        flex-direction: row;
        gap: 12px;
        width: 100%;
    }
    
    .step-icon {
        font-size: 24px;
        margin-bottom: 0;
    }
}

/* Loading Animation */
.async-loading-dots::after {
    content: '.';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60% {
        content: '...';
    }
    80%, 100% {
        content: '';
    }
}