.overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--in-primary-rgb), 0.2);
    z-index: 9999;
    color: white;
    text-align: center;
}

.loader {
    border: 6px solid var(--in-primary);
    border-top: 6px solid white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-text {
    font-size: 14px;
    color: white;
    margin-bottom: 20px;
    background: var(--in-primary);
    padding: 2px 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(var(--in-primary-rgb), 0.3);
    font-weight: 500;
}
