/* Custom styles for Profile Picture Management */

/* Style pour le bouton d'ajout de photos */
.add-photos-btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-photos-btn:hover {
    transform: scale(1.05);
}

.add-photos-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Ajuster le titre-bar pour aligner correctement les éléments */
.title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.title-bar h6 {
    margin-right: auto;
}

.title-bar .dz-tab {
    margin-left: 10px;
}

/* Style pour la galerie */
.dz-lightgallery {
    position: relative;
    min-height: 200px;
}

.dz-lightgallery.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* Animation de chargement pour l'upload */
.uploading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 10px;
}

.uploading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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