/* Loading Spinner Component */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #313b77;
    animation: spin 0.8s linear infinite;
}

.spinner.large {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.spinner.small {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.loading-overlay-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loading-overlay-message .spinner {
    width: 32px;
    height: 32px;
}

.loading-overlay-message p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* Hidden state */
.hidden {
    display: none !important;
}
