.window {
    background-color: #c0c0c0;
    padding: 3px;
    position: absolute;
    min-width: 1px;
    min-height: 1px;
    display: flex;
    flex-direction: column;
}

.window.dialog-centered {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: unset;
    height: auto;
}

.window.active .title-bar,
.title-bar-clone {
    background: linear-gradient(to right, rgb(0, 0, 128), rgb(16, 132, 208));
    color: white;
}
.window:not(.active) .title-bar {
    background: linear-gradient(to right, rgb(128, 128, 128), rgb(181, 181, 181));
    color: rgb(192, 192, 192);
}
.window.active .title-bar-text {
    color: white;
}
.window:not(.active) .title-bar-text {
    color: rgb(192, 192, 192);
}

.window.maximized { border-radius: 0; }
.window.minimized { display: none; }

.window-disable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12345;
    cursor: not-allowed;
    background: transparent;
}
.title-bar-clone {
    position: fixed;
    z-index: 12345;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    -webkit-font-smoothing: none;
    font-smooth: never;
}
.title-bar-clone .title-bar-text-clone {
    padding-left: 2px;
    font-weight: inherit;
    font-family: inherit;
    font-size: inherit;
}

.title-bar {
    padding: 0 2px;
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    height: 18px;
    flex-shrink: 0;
}
.title-bar:active { cursor: grabbing; }
.title-bar-text {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    flex-grow: 1; 
    display: flex;
    align-items: center;
    padding-left: 2px;
    
    min-width: 0; 
}
.title-bar-icon {
    vertical-align: middle; 
    margin-right: 4px;
}
.title-bar-controls { 
    display: flex; 
    flex-shrink: 0;
}
.title-bar-controls button {
    display: block;
    padding: 0;
    min-height: 14px;
    min-width: 16px;
}

.window-body {
    padding: 10px;
    overflow-y: auto;
    flex-grow: 1;
}

/* modal overlay blocker thing - i even forgot wher ei use this or where to use this wher ei havent used this */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: none;
}