/*====================================================

    FLOWMANAGER UI

    Modal v2.0

====================================================*/

.modal-overlay {

    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: rgba(0, 0, 0, .45);

    backdrop-filter: blur(3px);

    padding: 40px;

    z-index: 9999;

}

.modal {

    width: min(850px, 100%);

    max-height: 90vh;

    background: var(--fm-surface);

    border-radius: var(--fm-radius-lg);

    box-shadow: var(--fm-shadow-lg);

    overflow: hidden;

    animation: modalOpen .25s ease;

}

#modalContent {

    padding: 30px;

    overflow-y: auto;

    max-height: 90vh;

}

.hidden {

    display: none;

}

@keyframes modalOpen {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

@media(max-width:768px) {

    .modal-overlay {

        padding: 0;

        align-items: flex-end;

    }

    .modal {

        width: 100%;

        height: 100%;

        max-height: 100vh;

        border-radius: 24px 24px 0 0;

    }

    #modalContent {

        padding: 25px;

        max-height: 100vh;

    }

}