/* popup.css */
.popup,.popup-edit-design,.popup-export {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    
}
.popup-more-options {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    
}

.div-transactions {
            position: fixed;
            top:5px;
            left:50%;
            background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 10px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 5;
            display: flex;
            left: 50%;
    		transform: translateX(-50%); /* Centre horizontalement seulement */
            flex-wrap: wrap;
            gap: 5px;
            width: 350px;
            height: 120px;
            overflow:auto;
            /*transform: translateX(-50%);*/
        }

.popup.hidden,.popup-edit-design.hidden,.popup-export.hidden,.popup-more-options.hidden {
    display: none;
}

.popup-content {
    background: url('/assets/icons/background/background_1.png');
    padding: 3px;
    border-radius: 10px;
    border: 5mm ridge rgba(211, 220, 50, .6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    height: 520px;
    position: relative;
    
}


.close-popup {
    position: absolute;
    top: -25px;
    right: -20px;
    font-size: 30px;
    cursor: pointer;
    color:red;
}

.close-popup:hover {
    color: #00bcd4; /* Cyan au survol */
}

#dynamic-content-popup,#dynamic-content-popup-edit-design,#dynamic-content-popup-export,
#dynamic-content-popup-more-options {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 5px;
}


/* Styles pour le popup de chargement */
#loadingPopup {
    display: none; /* Caché par défaut */
}
.loadingPopup-content {
    background-color: white;
    padding: 5px;
    border: 4mm ridge cyan;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position:relative;
    border-radius: 20px;
    width: 220px;
    height: 120px;
    text-align: center;
    position:relative;
    }
    
.loading-cadre {
    border: 4px solid cyan;
    position:relative;
    border-radius: 20px;
    width: 100%;
    height: 150px;
}
.loadingPopup-content img {
    position:relative;
    top: -30px;
    height: 100%;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid cyan;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

#loadingPopup .popup-content {
    text-align: center;
    padding: 20px;
}

#loadingPopup p {
    margin-top: 10px;
    font-size: 16px;
}


.overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
           background-image: url('/assets/icons/background/background_1.png');
           
        }

        .message-popup {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 3px;
	    border-radius: 10px;
	    border: 4mm ridge cyan;
	    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	    width: 70%;
	    height:150px;
	    max-width: 250px;
            text-align: center;
            font-size:14px;
            font-weight:bold;
            z-index:11;
            justify-content: center; /* Centrage horizontal */
	    align-items: center; /* Centrage vertical */
            
        }
        
        .message-echec {
            color:red;
            background-color: white;
        }
        
        .message-succes {
            color:white;
            background-color: green;
            
        }

        .message-popup .close-btn {
            position: absolute;
            top: -25px;
            right: -20px;
            font-size: 30px;
            cursor: pointer;
            color:white;
        }
        .popup .close-btn {
            position: absolute;
            top: -25px;
            right: -20px;
            font-size: 30px;
            cursor: pointer;
            color:white;
        }
        
	.cadre-icone-message{
            position: absolute;
            top: -28px;
            left: 45%;
            display:none;
            
            
        }
        
        .icon-message {
            font-size: 40px;
            margin-right: 10px;
            background:white;
            border-radius:50%;
        }
        .success {
            color: green;
            
        }
        .error {
            color: red;
        }
        
        .message-popup .message {
            font-size: 16px;
            margin-bottom: 20px;
        }
        
    /* Style pour l'éditeur d'image (popup) */
.image-editor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.cropper-container {
    width: 90%;
    max-width: 500px;
    height: 60vh;
    margin: 0 auto;
    position: relative;
    background: #000;
}

#imagePreview {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.preview-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 15px auto;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.editor-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

.editor-buttons button {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 16px;
    transition: all 0.3s;
}

.editor-buttons button:first-child {
    background-color: #4CAF50;
    color: white;
}

.editor-buttons button:last-child {
    background-color: #f44336;
    color: white;
}

.editor-buttons button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Style pour le cropper (surcharge) */

/* Responsive pour mobile */
/*@media (max-width: 768px) {
    .cropper-container {
        height: 50vh;
        width: 95%;
    }*/
    
    /* Conteneur principal */
.cropper-container {
    direction: ltr; /* Sens de lecture */
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

/* Boîte de vue (zone de crop visible) */
.cropper-view-box {
    outline: 2px solid cyan; /* Couleur de la bordure */
    /*outline-color: rgba(52, 152, 219, 0.75); /* Version RGBA */
}

/* Zone de crop (masque) */
.cropper-face {
    background-color: white; /* Couleur du masque */
    opacity: 0.1; /* Transparence */
}

/* Lignes de guide */
.cropper-line {
    background-color: #69f; /* Couleur des guides */
    display: none !important;
}

/* Points de redimensionnement */
.cropper-point {
    background-color: yellow; /* Couleur des poignées */
    width: 10px; /* Taille */
    height: 10px;
    opacity: 0.75;
}

/* Zone modale (autour de la zone de crop) */
.cropper-modal {
    background-color: rgba(0, 0, 0, 0.5); /* Arrière-plan semi-transparent */
}

/* Personnalisation responsive */
@media (max-width: 768px) {
    .cropper-container {
        height: 50vh;
        width: 95%;
    }
}
.editor-buttons {
    flex-direction: column;
    align-items: center;
}

.editor-buttons button {
    width: 80%;
    margin-bottom: 10px;
}

/************* Message de confirmation **********/
.confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.confirm-content {
    background: url('/assets/icons/background/background_1.png') center/cover;
    padding: 15px;
    border-radius: 10px;
    border: 5mm ridge rgba(211, 220, 50, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 200px; /* Hauteur fixe totale */
    position: relative;
}

#confirm-message {
    height: 150px; /* Hauteur fixe comme demandé */
    left: 5px;
    right: 5px;
    display:flex;
    overflow-y: auto; /* Défilement vertical si nécessaire */
    position:absolute;
    top:0px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-sizing: border-box;
}

/* Barre de défilement personnalisée */
#confirm-message::-webkit-scrollbar {
    width: 8px;
}

#confirm-message::-webkit-scrollbar-thumb {
    background-color: rgba(211, 220, 50, 0.6);
    border-radius: 4px;
}

.confirm-buttons {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 5px; /* Positionnement absolu en bas */
    left: 5px;
    right: 5px;
    gap: 15px;
    background:rgba(211, 220, 50, 0.6);
    padding:5px;
    border-radius:5px;
}

.confirm-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 40px;
    background-color: white;
    border: 2px dashed;
    border-radius: 10px;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    /*flex: 1; /* Les boutons prennent tout l'espace disponible */
}

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

.confirm-btn i {
    font-size: 20px;
    margin-bottom: 3px;
}

.confirm-btn div {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

/* Style bouton Annuler */
.cancel-btn {
    border-color: #4CAF50;
    color: #4CAF50;
}

.cancel-btn i {
    color: #4CAF50;
}

/* Style bouton Confirmer */
.ok-btn {
    border-color: #F442A3;
    color: #F442A3;
}

.ok-btn i {
    color: #F442A3;
}

