.prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    animation: blackout 0.5s ease-in-out forwards;
}

.prompt-overlay.no-bg {
    animation: none;
    background-color: var(--background-color);
}

.prompt-overlay.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards !important;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes blackout {
    0% {
        background-color: rgba(0, 0, 0, 0);
    }

    100% {
        background-color: rgba(0, 0, 0, 0.3);
    }
}

.prompt-big-dialog,
.prompt-dialog {
    color: var(--text-color);
    background-color: var(--background-color);
    border: 1px solid var(--border-light-color);
    border-radius: 15px;
    max-width: 400px;
    width: calc(100% - 40px);
    box-shadow: var(--shadow);
    margin: 10px;
    animation: showdialog 0.5s ease-in-out forwards;
    overflow: hidden;
}

.prompt-big-dialog .toolbar,
.prompt-dialog .toolbar {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0px;
    pointer-events: none;
}

.prompt-big-dialog .toolbar .icon-button,
.prompt-dialog .toolbar .icon-button {
    width: 32px;
    height: 32px;
    font-size: x-large;
}

.prompt-big-dialog .toolbar .toolbar-left,
.prompt-big-dialog .toolbar .toolbar-center,
.prompt-big-dialog .toolbar .toolbar-right,
.prompt-dialog .toolbar .toolbar-left,
.prompt-dialog .toolbar .toolbar-center,
.prompt-dialog .toolbar .toolbar-right{
    display: flex; gap: 15px;
    pointer-events: visible;
}

.icon-button.dialog-window-control {
    background-color: var(--field-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: large !important;
}

.icon-button.dialog-window-control:hover {
    border-radius: 25%;
}

.icon-button.dialog-window-control:focus {
    outline: none;
}

.prompt-dialog.warn {
    animation: showdialogWarn 0.5s ease-in-out forwards !important;
}

.prompt-big-dialog {
    overflow: scroll;
    max-width: 100vw;
    width: 100vw;
    height: calc(100vh - 20px);
    margin: 20px;
    animation: showdialogBig 0.5s ease-in-out forwards;
}

.prompt-dialog.no-animation,
.prompt-big-dialog.no-animation {
    border: 0;
    box-shadow: none;
    animation: none !important;
}

@keyframes showdialog {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes showdialogWarn {
    0% {
        transform: translateX(10px);
    }
    25% {
        transform: translateX(-10px);
    }
    50% {
        transform: translateX(10px);
    }
    75% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(0px);
    }
}

@keyframes showdialogBig {
    0% {
        transform: translateX(calc(100% + 20px));
    }

    100% {
        transform: translateX(0%);
    }
}

.prompt-title {
    margin-bottom: 15px;
}

.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.prompt-dialog input {
    background: var(--field-color);
    color: var(--text-color);
    width: calc(100% - 40px);
    height: 35px;
    padding: 0px 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-field-color);
    outline: none;
    border-radius: 15px;
}

.prompt-dialog select {
    width: 100%;
    height: 35px;
    border-radius: 15px;
    border: 1px solid var(--border-field-color);
    background: var(--field-color);
    color: var(--text-color);
    margin-bottom: 15px;
    padding: 0px 10px;
    outline: none;
}

.prompt-buttons {
    display: flex;
    gap: 10px;
}

.prompt-button {
    padding: 5px 30px;
    border-radius: 15px;
    cursor: pointer;
    color: var(--text-color);
    border: 1px solid var(--border-light-color);
    background-color: transparent;
    outline: none;
}

.prompt-dialog select:focus,
.prompt-button:focus {
    border: 2px solid var(--highlight-color);
}

.prompt-button.submit {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--button-color-2);
}

.table-selector-dialog {
    display: grid;
    grid-template-columns: repeat(6, 30px);
    grid-template-rows: repeat(4, 30px);
    gap: 4px;
    padding: 10px;
    justify-content: center;
    perspective: 800px;
}

.table-item-ex {
    background: var(--field-color);
    cursor: pointer;
    border-radius: 3px;
    transition: 0.3s;
    border: 1px solid var(--border-field-color);
    transition: border 0s, background 0s 0.2s, transform 0.5s, border-radius 0.5s;
}

.table-item-ex.highlighted {
    background: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    transform: rotateY(180deg);
}

.table-selector-dialog > .table-item-ex:first-child {
    border-top-left-radius: 10px;
}
.table-selector-dialog > .table-item-ex.highlighted:first-child {
    border-top-left-radius: 3px;
    border-top-right-radius: 10px;
}

.table-selector-dialog > .table-item-ex:nth-child(6) {
    border-top-right-radius: 10px;
}
.table-selector-dialog > .table-item-ex.highlighted:nth-child(6) {
    border-top-right-radius: 3px;
    border-top-left-radius: 10px;
}

.table-selector-dialog > .table-item-ex:nth-child(19) {
    border-bottom-left-radius: 10px;
}
.table-selector-dialog > .table-item-ex.highlighted:nth-child(19) {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 10px;
}

.table-selector-dialog > .table-item-ex:nth-child(24) {
    border-bottom-right-radius: 10px;
}
.table-selector-dialog > .table-item-ex.highlighted:nth-child(24) {
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 10px;
}

.prompt-dialog div.center {
    display: block;
    text-align: center;
    justify-content: center;
}

.prompt-dialog hr {
    border: 0;
    border-bottom: 1px solid var(--border-light-color);
    width: 75%;
}

.prompt-dialog a {
    color: var(--link-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.prompt-dialog a:hover {
    text-decoration: underline;
}

.prompt-button-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 50px;
}

.prompt-button-list button,
.prompt-button-list button *,
.prompt-button-list button:focus {
    border: none;
    transition: 0s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 3px;
    border-radius: 0px;
}

.prompt-button-list .icon {
    font-size: large;
}

.prompt-button-list .selected-option {
    background-color: var(--hover-color);
    color: var(--text-color);
}

.prompt-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    background: var(--background-color);
    border-radius: 4px;
    font-size: 14px;
}

.prompt-preview-list li {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 500px;
}

.prompt-preview-list li.selected-option {
    background-color: var(--hover-color);
    color: var(--text-color);
}

.prompt-dialog .switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.prompt-dialog .switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.prompt-dialog .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--field-color);
    transition: 0.3s;
    border-radius: 12px;
}

.prompt-dialog .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: var(--text-color);
    transition: 0.1s;
    border-radius: 50%;
}

.prompt-dialog input:checked + .slider {
    background-color: var(--highlight-color);
}

.prompt-dialog input:checked + .slider:before {
    background-color:var(--button-color-2);
    transform: translateX(20px);
}

.prompt-dialog .switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.prompt-dialog .switch-text {
    font-size: 14px;
    color: var(--text-color);
}

.prompt-dialog .drop-area {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-radius: 15px;
    cursor: pointer;
    padding: 20px;
    transition: all .3s;
    height: 300px;
    border: 2px dashed transparent;
}

.prompt-dialog .drop-area:hover {
    background-color: var(--hover-color);
}

.prompt-dialog .drop-area.dragover {
    background-color: var(--selection-color);
    border-color: var(--highlight-color);
    margin: 10px;
    border: 2px dashed var(--highlight-color);
}

.prompt-dialog .drop-area-text {
    text-align: center;

    .subtitle {
        font-size: 0.9em;
    }
}

.prompt-dialog + .drop-area:hover {
    padding: 0;
}