/* xe-dialog Global Portal */
.xe-dialog-portal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Allow clicks to pass through when no dialog is opened */
    z-index: 1000;
}

/* xe-dialog Individual Wrapper */
.xe-dialog-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let empty areas forward clicks just in case, though dimmed covers it */
}

/* xe-dialog Dimmed Layer */
.xe-dialog-dimmed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: auto; /* Capture clicks on the background */
}

/* xe-dialog Component Properties */
xe-dialog {
    display: none; /* Hide when not open */
    position: relative;
    pointer-events: auto; /* Allow interaction with the dialog form */

    /* Default styling for the Demo */
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 300px;
}

xe-dialog[open] {
    display: block; /* Show when open */
}
