/**
 * WommModalUi — overlay flex, painel centralizado e header arrastável.
 * Padrão: Docs/design-system/PADRAO_modals.md
 */

.womm-modal-ui {
    display: none;
    position: fixed;
    z-index: 10050;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: default;
    align-items: center;
    justify-content: center;
    --color-primary: #0061B7;
    --color-primary-dark: #004d92;
}

.womm-modal-ui > .modal-content {
    background-color: #fff;
    color: #616161;
    width: 500px;
    max-width: 90%;
    border-radius: 12px;
    border: none;
    padding: 0;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: auto;
    flex: none;
    flex-shrink: 0;
    overflow: hidden;
}

.womm-modal-ui .modal-edit-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    cursor: move;
    user-select: none;
}

.womm-modal-ui .modal-edit-header .modal-edit-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.womm-modal-ui .modal-edit-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.womm-modal-ui .modal-edit-close .mdi {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.womm-modal-ui .modal-edit-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.womm-modal-ui .modal-edit-body {
    padding: 20px 24px;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
}

.womm-modal-ui .modal-edit-footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
