/* --- BEGIN AI-GENERATED CODE ---
 * Source: Claude Code
 * Model Used: Claude Opus 4.5
 * Human reviewed and approved on 2026-02-11 by US993293
 *
 * DocuShare Loading Spinner
 * Reusable loading overlay for long-running operations.
 * Usage: Include this CSS, then call DSLoadingSpinner.show() from JS.
 * --- END AI-GENERATED CODE --- */

/* Fullscreen overlay */
.ds-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ds-loading-overlay.ds-loading-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Centered container */
.ds-loading-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 32px 48px;
    text-align: center;
    max-width: 400px;
    animation: ds-loading-pop 0.2s ease-out;
}

@keyframes ds-loading-pop {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animated spinner */
.ds-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: #247ACB;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: ds-loading-spin 1s linear infinite;
}

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

/* Text messages */
.ds-loading-message {
    font-family: Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.ds-loading-submessage {
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #666666;
}
