/*
 * Reusable Loading Spinner Component
 * Usage: Include this CSS file and loading-spinner.js in any page that needs form submission feedback
 */

/* Loading overlay - semi-transparent backdrop */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Active state - shown when form is submitting */
.loading-overlay.active {
    display: flex;
}

/* Animated spinner */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Spin animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading text below spinner */
.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 500;
}

/* Disable submit buttons when form is submitting */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
