/**
 * MagicForms Flash Modal Styles
 * Styles pour afficher les messages flash dans une modale
 */

.magicforms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magicforms-modal.active {
    display: flex;
    opacity: 1;
}

.magicforms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.magicforms-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 500px;
    padding: 16px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
    animation: modalSlideIn 0.3s ease;
    .magicforms-modal-body{
        color: #1a202c;
        h4{
            font-size:21px;
        }
        ul{
            list-style: circle;
            font-size:16px;
        }
    }
}

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

.magicforms-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 2;
    transition: color 0.2s ease;
}

.magicforms-modal-close:hover {
    color: #333;
}

.magicforms-modal-body {
    padding: 20px;
}

/* Ajustements pour les alerts Bootstrap */
.magicforms-modal-body .alert {
    margin-bottom: 0;
}

.magicforms-modal-body .alert h4 {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .magicforms-modal-content {
        width: 95%;
        max-width: none;
        border-radius: 0;
    }
}
