﻿#window-container{
    position: absolute;
    height: 100%;
    width: 100%;
    top:0;
    left:0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.canvas {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    pointer-events: all;
    position: absolute;
    display: flex;
    flex-direction: column;
    background: #0A246A;
    background: linear-gradient(to right, #0A246A 0%, #0F387F 50%, #0A246A 100%);
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
    color: #ffffff;
    user-select: none;
    min-width: 200px;
    min-height: 100px;
    font-family: "MS Sans Serif", Arial, sans-serif;
    font-size: 11px;
/*    overflow: hidden;*/
    z-index: 0;
}
.element.expanded {
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1;
}

/* Window Title Bar */
.element .window-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    background: linear-gradient(to right, #000080, #1084d7);
    padding: 2px 2px 2px 3px;
    flex-shrink: 0;
    cursor: move;
    user-select: none;
}
.window-title-img{
    width: 15px;
    height: 15px;
    pointer-events: none;
}

.element .window-title-text {
    color: #ffffff;
    font-weight: bold;
    font-size: 11px;
    flex: 1;
    padding: 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-shadow: 1px 1px 0 rgba(0,0,0,0.5);
}

/* Window Close Button */
.title-button {
    width: 16px;
    height: 14px;
    background: linear-gradient(to bottom, #f0f0f0, #dfdfdf);
    border: 1px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #404040;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #000;
    font-weight: bold;
    position: relative;
    z-index: 3;
}

.title-button.window-close::before {
    content: "×";
}
.title-button.window-collaps::before {
    content: "─";
    position: absolute;
    top: 2px;
}
.title-button.window-toggle[data-state="collapsed"]::before {
    content: "❐";
}
.title-button.window-toggle[data-state="expanded"]::before {
    content: "▭";
}
.title-button:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #404040;
}

/* Window Content */
.element .window-content {
    flex: 1;
    background: #c0c0c0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    z-index: 1;
    cursor: default;
}

/* Resize controls */
.element .left {
    position: absolute;
    cursor: w-resize;
    width: 10px;
    height: 100%;
    left: -5px;
    top: 0;
    background: transparent;
    z-index: 1;
}

.element .right {
    position: absolute;
    cursor: e-resize;
    width: 10px;
    height: 100%;
    right: -5px;
    top: 0;
    background: transparent;
    z-index: 1;
}

.element .top {
    position: absolute;
    cursor: n-resize;
    width: 100%;
    height: 10px;
    top: -5px;
    left: 0;
    background: transparent;
    z-index: 1;
}

.element .bottom {
    position: absolute;
    cursor: s-resize;
    width: 100%;
    height: 10px;
    bottom: -5px;
    left: 0;
    background: transparent;
    z-index: 1;
}

.element .ltop {
    position: absolute;
    width: 10px;
    height: 10px;
    cursor: nw-resize;
    left: -5px;
    top: -5px;
    background: transparent;
    z-index: 2;
}

.element .rtop {
    position: absolute;
    width: 10px;
    height: 10px;
    cursor: ne-resize;
    right: -5px;
    top: -5px;
    background: transparent;
    z-index: 2;
}

.element .rbottom {
    position: absolute;
    width: 10px;
    height: 10px;
    cursor: se-resize;
    right: -5px;
    bottom: -5px;
    background: transparent;
    z-index: 2;
}

.element .lbottom {
    position: absolute;
    width: 10px;
    height: 10px;
    cursor: sw-resize;
    left: -5px;
    bottom: -5px;
    background: transparent;
    z-index: 2;
}
