.notification {
    position: fixed;
    z-index: 1000;
}

/* Status notification styles */
.notification.status-notification {
    bottom: 25px;
    left: 30px;
    width: fit-content;
    max-width: 50%;
    pointer-events: none;
}

.notification.status-notification:has(.notification-text:empty) {
    display: none;
}

.notification.status-notification .notification-text {
    color: var(--light-mode-text-color);
    margin: 0;
}

[data-theme="dark"] .notification.status-notification .notification-text {
    color: var(--dark-mode-text-color);
}

/* Dialog notification styles */
.popover-dialog {
    background-color: var(--light-mode-bg-color);
    color: var(--light-mode-text-color);
    max-width: 400px;
    width: 90vw;
    border: none;
    border-radius: 10px;
}

.popover-dialog::backdrop {
    background-color: rgb(20, 20, 20, 0.5);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s, backdrop-filter 0.5s;
}

[data-theme="dark"] .popover-dialog {
    background-color: var(--dark-mode-bg-color);
    color: var(--dark-mode-text-color);
}

.popover-dialog[open] {
    inset: auto;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    transition: transform 0.5s, opacity 0.7s;

    @starting-style {
        transform: translateX(-50%) translateY(calc(-100% - 50px));
        opacity: 0;
    }
}

.popover-dialog.popover-dialog-single-button {
    flex-direction: column;
    align-items: center;
}

.popover-dialog.popover-dialog-single-button[open] {
    display: flex;
}

.popover-dialog.popover-dialog-two-button {
    grid-template-areas: "dialog-title dialog-title" 
                         "dialog-text dialog-text" 
                         "dialog-button-left dialog-button-right";
    justify-items: center;
}

.popover-dialog.popover-dialog-two-button[open] {
    display: grid;
}

.popover-dialog .popover-dialog-title {
    text-align: center;
    margin: 0;
    grid-area: dialog-title;
}

.popover-dialog .popover-dialog-text {
    grid-area: dialog-text;
}

.popover-dialog .popover-dialog-button {
    all: unset;
    border: none;
    outline: none;
    border-radius: 100vw;
    text-align: center;
    cursor: pointer;
    padding: 2px 0;
    width: 170px;
}

.popover-dialog .popover-dialog-button.popover-dialog-button-normal {
    background-color: rgb(200, 200, 200);
}

[data-theme="dark"] .popover-dialog .popover-dialog-button.popover-dialog-button-normal {
    background-color: rgb(80, 80, 80);
}

.popover-dialog .popover-dialog-button.popover-dialog-button-action {
    background-color: rgb(80, 80, 80);
    color: var(--dark-mode-text-color);
}

[data-theme="dark"] .popover-dialog .popover-dialog-button.popover-dialog-button-action {
    background-color: rgb(200, 200, 200);
    color: var(--light-mode-text-color);
}

.popover-dialog .popover-dialog-button-left {
    grid-area: dialog-button-left;
}

.popover-dialog .popover-dialog-button-right {
    grid-area: dialog-button-right;
}


/* Mobile scaling styles */
@media screen and (max-width: 555px) {
    .notification.status-notification {
        bottom: unset;
        top: 5px;
    }

    .popover-dialog.popover-dialog-two-button .popover-dialog-text {
        margin: 0;
    }

    .popover-dialog.popover-dialog-two-button {
        grid-template-areas: unset;
        flex-direction: column;
        align-items: center;
        gap:10px;
    }

    .popover-dialog.popover-dialog-two-button[open] {
        display: flex;
    }
}