/**
 * Overlay Fix
 * Corrige problemas com overlays de modals e conteúdo
 */

/* Remove duplicate overlays */
.content-overlay {
    display: none !important;
}

/* Fix modal backdrop */
.modal-backdrop {
    z-index: 1040 !important;
}

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

/* Fix SweetAlert2 overlays */
.swal2-container {
    z-index: 10000 !important;
}

/* Fix multiple modal stacking */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Prevent body scroll when modal is open */
body.modal-open .app-content {
    filter: none !important;
}

/* Fix overlay transitions */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Remove duplicate content overlays */
.app-content .content-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

/* Fix overlay clicks */
.modal-backdrop.show {
    opacity: 0.5;
}

/* Prevent double scrollbars */
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Fix nested modals */
.modal.show ~ .modal-backdrop {
    z-index: 1040 !important;
}

/* Fix sidebar overlay conflicts */
.sidenav-overlay {
    z-index: 997 !important;
}
