/* Styles pour les messages de succès */

.vote-alert-success {
    text-align: center;
    /* Centrer le texte horizontalement */
    background-color: #4CAF50;
    color: #fff;
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    display: inline-block;
    /* Permet à la div d'avoir la même largeur que le texte */
    border: 1px solid #4CAF50;
    margin-left: auto;
    /* Aligner la div à droite */
}

/* Styles pour les messages d'erreur */
.vote-alert-danger {
    text-align: center;
    background-color: #FF5733;
    color: #fff;
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    display: inline-block;
    border: 1px solid #FF5733;
    margin-left: auto;
}

.vote-alert-warning {
    text-align: center;
    background-color: #fff3cd;
    color: #856404;
    /* Couleur du texte */
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    display: inline-block;
    border: 1px solid #ffeeba;
    /* Couleur de la bordure */
    margin-left: auto;
    margin-right: auto;
    /* Centre l'alerte horizontalement */
    max-width: 600px;
    /* Largeur maximale de l'alerte */
    border-radius: 5px;
    /* Bordure arrondie */
}


.payment-error-instructions {
    background-color: #fff4f4;
    /* Couleur de fond claire pour l'attention */
    border-left: 5px solid #ff0000;
    /* Bordure gauche pour signifier une erreur */
    padding: 15px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.payment-error-instructions ul {
    padding-left: 20px;
    /* Ajouter un padding pour les listes */
}

.payment-error-instructions li {
    margin-bottom: 10px;
    /* Espacement entre les points */
}

/* Styles pour la section de feedback */
.feedback-section {
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
}

.feedback-section a.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

/* Alerts toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.5s ease;
    gap: 10px;
    /* Ajoute un espace entre le texte et le bouton */
}

.toast span {
    flex: 1;
    /* Assure que le texte prend tout l'espace disponible */
}

.toast .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    /* Enlève le padding par défaut du bouton */
    margin-left: 10px;
    /* Ajoute une marge gauche pour séparer du texte */
}

/* Custom colors */
.toast-primary {
    background-color: var(--lightBlue);
    /* Primary color */
}

.toast-success {
    background-color: #28a745;
    /* Success color */
}

.toast-warning {
    background-color: var(--purple);
    /* Warning color */
}

.toast-error {
    background-color: #dc3545;
    /* Error color */
}


/* Modals */
.custom-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 999;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 30% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#modal-cancel-btn {
    background-color: var(--purple);
}

.custom-modal .close-btn {
    color: var(--purple);
    position: absolute;
    top: 15px;
    right: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.custom-modal .close-btn:hover,
.custom-modal .close-btn:focus {
    color: var(--black);
    text-decoration: none;
    cursor: pointer;
}

.modal-btn {
    background-color: var(--lightBlue);
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background-color: var(--purple);
}

#modal-message {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    background: var(--gradient);
    padding: 10px;
    border-radius: 5px;
}
