/* ==================== ALERT CARDS - STYLE MODERNE TIGSI ==================== */

/* Ancien style maintenu pour compatibilité */
.vote-alert-success {
    text-align: center;
    background-color: #4CAF50;
    color: #fff;
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    display: inline-block;
    border: 1px solid #4CAF50;
    margin-left: auto;
}

.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;
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    display: inline-block;
    border: 1px solid #ffeeba;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    border-radius: 5px;
}

/* Nouveau style moderne pour les cartes d'alerte */
.vote-alert-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.12);
    margin-bottom: 1.5rem;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.alert-header i {
    font-size: 1.5rem;
}

.alert-body {
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Success Alert - Gradient vert */
.vote-alert-success .alert-header {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Warning Alert - Gradient rose/rouge */
.vote-alert-warning .alert-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Error Alert - Gradient violet Tigsi */
.vote-alert-danger .alert-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Instructions d'erreur de paiement */
.payment-error-instructions {
    background: rgba(102, 126, 234, 0.04);
    border-left: 5px solid #667eea;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    font-size: 16px;
    line-height: 1.6;
}

.payment-error-instructions strong {
    color: #667eea;
    font-size: 1.05rem;
}

.payment-error-instructions ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.payment-error-instructions li {
    margin-bottom: 0.75rem;
    color: #272D3B;
}

/* 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 - STYLE MODERNE TIGSI ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 300px;
    max-width: 450px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: toastSlideIn 0.4s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast span {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.toast .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.toast .close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* Toast colors - Gradients Tigsi */
.toast-primary {
    background: linear-gradient(135deg, #6DC6D4 0%, #667eea 100%);
    box-shadow: 0 6px 25px rgba(109, 198, 212, 0.4);
}

.toast-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 6px 25px rgba(67, 233, 123, 0.4);
}

.toast-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 6px 25px rgba(240, 147, 251, 0.4);
}

.toast-error {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive toast */
@media (max-width: 480px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}


/* ==================== MODALS - STYLE MODERNE TIGSI ==================== */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(39, 45, 59, 0.75);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.custom-modal .close-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: rotate(90deg) scale(1.1);
    color: #764ba2;
}

#modal-message {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
}

.modal-btn {
    background: linear-gradient(135deg, #6DC6D4 0%, #667eea 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 198, 212, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 198, 212, 0.4);
}

#modal-cancel-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#modal-cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
        width: 95%;
    }

    #modal-message {
        font-size: 1rem;
    }

    .modal-btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}
