﻿.dialog-backdrop {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.25);
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    z-index: 99999;
}

.dialog {
    width: 90vw;
    max-width: 700px;
    min-height: 200px;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 12px 0 rgba(0,0,0,0.16);
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 40px;
    grid-template-rows: 55px 2px max-content 60px;
    grid-template-areas: "dialogtitle closebutton"
                        "dialogdivider dialogdivider"
                        "dialogcontent dialogcontent"
                        "dialogbuttons dialogbuttons";
}

.dialog::before {
    content: "";
    grid-area: dialogdivider;
    width: 100%;
    height: 2px;
    border-bottom: 1px solid var(--input-border-color);
}

.dialog-title {
    grid-area: dialogtitle;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-content: center;
    align-items: center;
    font-weight: bold;
}

.dialog-content {
    grid-area: dialogcontent;
    padding: 15px 0;
}

.dialog-text {
    width: 100%;
}

.dialog-text.has-texticon {
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: 100%;
    grid-template-areas: "dialogtexticon dialogtext";
    gap: 10px;
    align-content: start;
    align-items: start;
}

.dialog-text.has-texticon > div {
    min-height: 24px;
    padding-top: 3px;
}

.dialog-buttons {
    grid-area: dialogbuttons;
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

.dialog-buttons > button {
    background-color: #3b82f6;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #3b82f6;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 14px;
    padding: 0 20px;
    cursor: pointer;
}