/* ---------------------------------------------------------------------- */
/*	modal - Custom Modal Styles */
/* ---------------------------------------------------------------------- */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--flashmessage_bg_close_button);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.custom-modal {
    padding: 0;
    width: min(90vw, 450px);
    max-height: 90vh;
    animation: slideIn 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--boxColor);
    border-radius: var(--borderRadius);
    box-shadow: var(--boxShadow);
    transition: all 0.3s ease;
    border: 1px solid var(--bgModalColor);
}

.custom-modal-header {
    padding: 10px 22px;
    border-bottom: 1px solid var(--flashmessage_bg_close_button);
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 400 !important;
    margin: 0;
}

.custom-modal-body {
    padding: 22px;
    line-height: 1.5;
    flex: 1;
    overflow-y: auto;
    font-weight: 400;
}

.custom-modal-body span {
    display: block;
    margin: 10px 0;
    padding: 5px;
    background: var(--graphiteColor);
    color: var(--whiteColor);
    font-weight: 300;
    border-radius: var(--borderRadius);
}

.custom-modal-footer {
    padding: 10px 22px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid var(--borderInputColor);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.custom-modal.closing {
    animation: slideOut 0.2s ease forwards;
}

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

.custom-modal-body code {
    display: inline-block;
    padding: 5px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    background: var(--skeletonColor);
    color: var(--graphiteColor);
    border-radius: var(--borderRadius);
}

/* Eleva a modal do Bootstrap e o escurecimento de fundo acima de body > * */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}
