/**
 * Parts4All Custom Spinner
 * Custom loading spinner with Parts4All favicon
 */

.parts4all-loader {
    display: inline-block;
    width: 80px;
    height: 80px;
    animation: parts4all-spin 1.5s linear infinite;
}

.parts4all-loader-small {
    display: inline-block;
    width: 40px;
    height: 40px;
    animation: parts4all-spin 1.5s linear infinite;
}

.parts4all-loader-large {
    display: inline-block;
    width: 120px;
    height: 120px;
    animation: parts4all-spin 1.5s linear infinite;
}

@keyframes parts4all-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.parts4all-loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.parts4all-loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #666;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Overlay loading for full page */
.parts4all-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Inline loading for smaller areas */
.parts4all-loading-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 120px;
}

/* Loading state for containers */
.parts4all-loading-container {
    position: relative;
    min-height: 200px;
}

.parts4all-loading-container .parts4all-loading-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}