/* === LOADER GÉNÉRIQUE === */

.app-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.app-loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.app-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.app-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: app-loader-spin 0.8s linear infinite;
}

@keyframes app-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.app-loader-text {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Variante pour conteneur avec position relative */
.app-loader-container {
    position: relative;
    min-height: 200px;
}

/* Loader en mode inline (pour petits espaces) */
.app-loader-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.app-loader-inline .app-loader-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.app-loader-inline .app-loader-text {
    font-size: 0.875rem;
}

/* Loader en mode fullscreen */
.app-loader-overlay.fullscreen {
    position: fixed;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .app-loader-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .app-loader-text {
        font-size: 0.875rem;
    }
}

