/* Delayed Image Import Styles */

.delayed-image-container {
    display: inline-block;
    position: relative;
    text-align: center;
}

.delayed-image-spinner {
    max-width: 100%;
    height: auto;
    opacity: 0.7;
    animation: spin 1s linear infinite;
}

.delayed-featured-spinner {
    /* Styles specific to featured image spinners */
}

.delayed-gallery-spinner {
    /* Styles specific to gallery image spinners */
}

.delayed-image-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin styles */
.delayed-images-admin .attempt-progress {
    position: relative;
    width: 60px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.delayed-images-admin .progress-bar {
    height: 100%;
    background: #0073aa;
    transition: width 0.3s ease;
}

.delayed-images-admin .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: bold;
    color: #333;
}

.delayed-images-admin .status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.delayed-images-admin .status-completed { 
    background: #d4edda; 
    color: #155724; 
}

.delayed-images-admin .status-processing { 
    background: #fff3cd; 
    color: #856404; 
}

.delayed-images-admin .status-failed { 
    background: #f8d7da; 
    color: #721c24; 
}

.delayed-images-admin .status-pending { 
    background: #e2e3e5; 
    color: #383d41; 
}

.delayed-images-admin .server-filter {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.delayed-images-admin .server-filter label {
    font-weight: bold;
    margin-right: 10px;
}

.delayed-images-admin .server-filter select {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .delayed-image-container {
        max-width: 100%;
    }
    
    .delayed-images-admin .attempt-progress {
        width: 50px;
        height: 18px;
    }
    
    .delayed-images-admin .progress-text {
        font-size: 10px;
    }
}