/**
 * Image Upload Loader Styles
 * Provides consistent loading indicators for all image uploads
 */

/* Base loader container */
.biose-upload-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

/* Spinner animation */
.biose-upload-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    animation: biose-spin 1s linear infinite;
    margin-bottom: 10px;
}

/* Loading text */
.biose-upload-text {
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

/* Progress bar for multiple uploads */
.biose-upload-progress {
    width: 200px;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.biose-upload-progress-bar {
    height: 100%;
    background-color: #dc3545;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Upload status indicators */
.biose-upload-status {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

.biose-upload-status.success {
    color: #28a745;
}

.biose-upload-status.error {
    color: #dc3545;
}

/* Keyframe animation */
@keyframes biose-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .biose-upload-spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
    
    .biose-upload-text {
        font-size: 12px;
    }
    
    .biose-upload-progress {
        width: 150px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .biose-upload-loader {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .biose-upload-spinner {
        border-color: #333;
        border-top-color: #dc3545;
    }
    
    .biose-upload-text {
        color: #dc3545;
    }
    
    .biose-upload-progress {
        background-color: #333;
    }
    
    .biose-upload-status {
        color: #ccc;
    }
}
