/* SOLUÇÃO DEFINITIVA PARA INPUTS NO SWEETALERT2 */

/* Reset completo para inputs no SweetAlert2 */
.swal2-popup input,
.swal2-popup textarea,
.swal2-popup select {
    all: unset !important;
    all: initial !important;
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    display: block !important;
    width: 100% !important;
    border: 1px solid #ccc !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
    color: #000 !important;
    background: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    cursor: text !important;
}

/* Estilos específicos para select */
.swal2-popup select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 16px !important;
    padding-right: 30px !important;
}

/* Estilos para foco */
.swal2-popup input:focus,
.swal2-popup textarea:focus,
.swal2-popup select:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 2px !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Garantir que o modal não bloqueie interações */
.swal2-container {
    pointer-events: auto !important;
    z-index: 9999 !important;
}

.swal2-popup {
    pointer-events: auto !important;
    z-index: 10000 !important;
}

.swal2-content {
    pointer-events: auto !important;
    z-index: 10001 !important;
}

.swal2-html-container {
    pointer-events: auto !important;
    z-index: 10002 !important;
}

/* Garantir que todos os elementos dentro do modal sejam interativos */
.swal2-popup * {
    pointer-events: auto !important;
}

/* Remover qualquer overlay que possa estar bloqueando */
.swal2-backdrop {
    pointer-events: auto !important;
}

/* Forçar que o modal seja interativo quando mostrado */
.swal2-popup.swal2-show {
    pointer-events: auto !important;
}

.swal2-popup.swal2-show * {
    pointer-events: auto !important;
}

/* Estilos específicos para form-group */
.swal2-popup .form-group {
    margin-bottom: 1rem !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1000 !important;
}

.swal2-popup .form-group label {
    display: inline-block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500 !important;
    color: #212529 !important;
    pointer-events: auto !important;
}

/* Override para qualquer CSS que possa estar interferindo */
.swal2-popup input[disabled],
.swal2-popup select[disabled],
.swal2-popup textarea[disabled] {
    background-color: #fff !important;
    color: #000 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    cursor: text !important;
}

/* Garantir que inputs específicos sejam sempre editáveis */
#formEditarMorador input,
#formEditarMorador select,
#formEditarMorador textarea {
    all: unset !important;
    all: initial !important;
    pointer-events: auto !important;
    user-select: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    display: block !important;
    width: 100% !important;
    border: 1px solid #ccc !important;
    padding: 8px !important;
    margin-bottom: 10px !important;
    color: #000 !important;
    background: #fff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10000 !important;
    opacity: 1 !important;
    cursor: text !important;
}

#formEditarMorador select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 16px !important;
    padding-right: 30px !important;
}

#formEditarMorador input:focus,
#formEditarMorador select:focus,
#formEditarMorador textarea:focus {
    outline: 2px solid #007bff !important;
    outline-offset: 2px !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
} 