
/* Version 0.6.19 */

* {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
	--main-bg: #dae8fc;
	--main-border: #c2c8ce;
}

input, button {
	border: 1px solid gray;
	border-radius: 2px;
}

input[type="radio"], input[type="checkbox"] {
	transform: scale(1.2);
}

label {
	display: flex;
	align-items: center;
	gap: 0.75em;
}

.Form {
	position: absolute;
	/*background-color: #555;*/
	-background-color: rgb(33, 33, 33);
	background-color: rgb(133, 133, 133);
	border-radius: 10px 10px 0 0;
	user-select: none;
	border: 1px solid #000;
	display: grid;
	grid-template-areas:
		"header header header"
		"left menu right"
		"left content right"
		"footer footer footer";
	grid-template-columns: 5px 1fr 5px;
	/* 0px height for hiding TMainMenu, 25px for showing*/
	grid-template-rows: 40px 0px 1fr 5px;
	overflow: hidden;
}

.Form .FormBorder {
  cursor: default;
}

.resizeable {
	display: grid;
}

.bsNone {
  /*border: initial;*/
  grid-template-columns: 0px 1fr 0px;
  grid-template-rows: 0px 1fr 0px;
}

.FormShadow {
	box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
}

.FormHeader {
	grid-area: header;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	-background: linear-gradient(180deg,rgb(112, 112, 112) 0%, rgb(33, 33, 33) 100%);
	background: linear-gradient(180deg,rgb(154, 154, 154) 0%, rgb(133, 133, 133) 100%);
}

.FormHeaderText {
	text-align: center;
	-color: black;
	color: lightgray;
	font-weight: bold;
	line-height: 2em;
}

.FormHeaderIcons {
	position: absolute;
	right: 8px;
	display: flex;
	gap: 2px;
}

.FormHeaderIcon.FormMinimize {
	background-image: url(../images/minimize.png);
	width: 19px;
	height: 19px;
}

.FormHeaderIcon.FormMaximize {
	background-image: url(../images/maximize.png);
	width: 19px;
	height: 19px;
}

.FormHeaderIcon.FormClose {
	background-image: url(../images/close.png);
	width: 19px;
	height: 19px;
}

.FormClose:hover {
	filter: brightness(0.7);
}

.FormMenu {
	grid-area: menu;
	display: flex;
	gap: 15px;
	align-items: center;
	background-color: #e8e8e7;
	-padding: 0 10px 0 10px;
	border-bottom: 1px solid #d1d1d0;
}

.FormContent {
	position: relative;
	grid-area: content;
	background-color: #dae8fc;
	overflow: hidden;
}

.FormFooter {
    position: relative;
    grid-area: footer;
    bottom: 3px;
    overflow: hidden;
    cursor: pointer;
}

.FormFooterText {
    text-align: center;
    color: lightgray;
    font-weight: bold;
    line-height: 2.3em;
}

.FormActive {
	-background-color: rgb(133, 133, 133);
	background-color: rgb(33, 33, 33);
}

.FormActive .FormHeader {
	-background: linear-gradient(180deg,rgb(154, 154, 154) 0%, rgb(133, 133, 133) 100%);
	background: linear-gradient(180deg,rgb(112, 112, 112) 0%, rgb(33, 33, 33) 100%);
}

.Form:not(.FormActive) .FormHeaderText {
	-color: lightgray;
	color: black;
}

.Form.resizeable .FormBorderN {
    position: absolute;
    top: -5px;
    height: 10px;
    left: 5px;
    right: 5px;
    cursor: n-resize;
}

.Form.resizeable .FormBorderNE {
    position: absolute;
    top: -5px;
    height: 10px;
    right: -5px;
    width: 10px;
    cursor: ne-resize;
}

.Form.resizeable .FormBorderE {
    position: absolute;
    right: -5px;
    top: 5px;
    width: 10px;
    bottom: 5px;
    cursor: e-resize;
}

.Form.resizeable .FormBorderSE {
    position: absolute;
    bottom: -5px;
    height: 10px;
    right: -5px;
    width: 10px;
    cursor: se-resize;
}

.Form.resizeable .FormBorderS {
    position: absolute;
    bottom: -5px;
    height: 10px;
    left: 5px;
    right: 5px;
    cursor: s-resize;
}

.Form.resizeable .FormBorderSW {
    position: absolute;
    bottom: -5px;
    height: 10px;
    left: -5px;
    width: 10px;
    cursor: sw-resize;
}

.Form.resizeable .FormBorderW {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: -5px;
    width: 10px;
    cursor: w-resize;
}

.Form.resizeable .FormBorderNW {
    position: absolute;
    top: -5px;
    height: 10px;
    left: -5px;
    width: 10px;
    cursor: nw-resize;
}

.FormMaximized {
	inset: 0 !important;
}

.FormMaximized .FormContent {
	width: 100% !important;
	height: 100% !important;
}

.FormFullScreen .FormContent {
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100% !important;
	height: 100% !important;
}

.PopupMenu {
	position: absolute;
	display: none;
	z-index: 1000;
	background-color: white;
	border: 1px solid #ccc;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	min-width: 150px;
	flex-direction: column;
	padding: 5px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	z-index: 2000;
}

.MenuItem {
	padding: 8px 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	white-space: nowrap;
	color: #333;
}

.SubMenu .MenuItem {
	width: 100%;
}

.MainMenu > .MenuItem:not(.SubMenu) {
	height: 24px;
}

.MenuItem:hover:not(.disabled) {
	color: blue;
	background-color: #f0f0f0;
}

.MenuItem.menu-selected:not(.disabled) {
	color: blue;
	background-color: #f0f0f0;
}

.MenuItem u {
	text-decoration: underline;
}

.MenuItem.disabled {
	color: #999;
	cursor: default;
}

.MenuItem.disabled:hover {
	background-color: transparent;
}

.MenuSeparator {
	height: 1px;
	background-color: #ddd;
	margin: 5px 0;
	padding: 0;
}

.MenuItem.checked::before {
	content: "✓ ";
	font-weight: bold;
}

.MainMenu {
	display: flex;
	background-color: #e8e8e7;
	padding: 0;
	margin: 0;
	height: 25px;
	align-items: center;
	width: 100%;
	border-bottom: 1px solid #d1d1d0;
	overflow: hidden;
}

.MainMenuItem {
	padding: 0 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	height: 100%;
	color: #333;
}

.MainMenuItem:hover:not(.disabled) {
	background-color: #e0e0e0;
}

.MainMenuItem.disabled {
	color: #999;
	cursor: default;
}

.MainMenuItem.disabled:hover {
	background-color: transparent;
}

@keyframes formAnimatedShow {
    from {
        transform: scale(1.3);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes formAnimatedHide {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.3);
        opacity: 0;
    }
}

.formAnimatedShow {
    animation: formAnimatedShow 500ms ease-in-out forwards;
}

.formAnimatedHide {
    animation: formAnimatedHide 500ms ease-in-out forwards;
}

.StatusBar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px;
	background-color: lightgray;
	border: 1px solid darkgray;
}

.TaskBar {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 5px;
	background-color: lightgray;
	border: 1px solid darkgray;
	height: 40px;
	left: 0px;
	right: 0px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.TaskBarTop {
	top: 0px;
}

.TaskBarBottom {
	bottom: 0px;
}

.TaskBarHidden {
	display: none;
}

#xProject:has(#TaskBar1.TaskBarBottom) > .Form.FormMaximized {
    inset: 0 0 40px 0 !important;
}

#xProject:has(#TaskBar1.TaskBarTop):not(:has(> .TaskBar.TaskBarHidden)) > .Form.FormMaximized {
    inset: 40px 0 0 0 !important;
}

#xProject:has(> .TaskBar.TaskBarHidden) > .Form.FormMaximized {
	inset: 0 !important;
}

.TaskBarButton {
	height: calc(100% - 6px);
	-width: 120px;
	-padding-bottom: 2px;
	border: 1px solid lightgray;
	white-space: nowrap;
	padding: 0 6px;
	border-radius: 5px;
	overflow: clip;
	text-overflow: ellipsis;
	flex: 0 0 120px;
	min-width: 0;
	order: var(--order, 9999);
}

.TaskBarButtonActive {
	box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
	border: 1px solid darkgray;
}

.submenu-indicator {
	margin-left: auto;
	font-size: 12px;
	color: #666;
} 

.FrameContent {
	position: relative;
	background-color: white;
	overflow: hidden;
}

.CheckBox {
	display: flex;
	gap: 5px;
	width: auto !important;
}

.ToggleBox {
	display: inline-block;
}

.ToggleBox input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ToggleBox label {
	display: inline-block;
	padding: 2px 8px;
	border: 1px outset ButtonFace;
	background: ButtonFace;
	color: ButtonText;
	cursor: default;
	user-select: none;
	width: 100%;
	text-align: center;
}

/* während des Klickens */
.ToggleBox label:active {
	border: 1px inset ButtonFace;
}

/* dauerhafter Zustand */
.ToggleBox input:checked + label {
	border: 1px inset ButtonFace;
}

.ToggleBox input:focus + label {
	outline: 2px solid Highlight;
	outline-offset: 2px;
}

@supports not (color: Highlight) {
	.ToggleBox input:focus + label {
		outline: 2px solid #1a73e8;
	}
}

.RadioButton {
	display: flex;
	gap: 5px;
	width: auto !important;
}

.TreeView {
  overflow: hidden;
  font-size: 0.9rem;
	background-color: aliceblue;
	border: 1px solid gray;
	overflow-y: auto;
	padding: 5px 10px 5px 0;
	user-select: none;
}

#xProject > .TreeView {
	max-height: 250px;
	z-index: 2000;
}

.TreeNodeSelected > .TreeNodeLabel {
	background-color: #dae8fc;
}

.TreeNodeLabel {
  display: flex;
  align-items: center;
  min-height: 26px;
  margin-left: -2000px;
  padding-left: calc(2000px + 6px);
  margin-right: -2000px;
  padding-right: 2000px;
  white-space: nowrap;
  cursor: default;
}

.TreeNodeLabel:hover {
  background-color: #b8d5ff;
}

.TreeNodeChildren {
  margin-left: 20px;
	display: none;
}

.TreeNodeChildrenVisible {
	display: block;
}

.TreeNodeText {
  color: #333;
}

.TreeNodeToggle {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.10);
  background-repeat: no-repeat;
  background-position: center;
	font-size: 10px;
	text-align: center;
	color: #233a4b;
	transition: transform 250ms ease;
}

.TreeNodeToggle::before {
	content: "▶";
	-content: "❯";
}

.TreeNode:has(> .TreeNodeChildren.TreeNodeChildrenVisible) > .TreeNodeLabel > .TreeNodeToggle {
	transform: rotate(90deg);
}

.TreeNodeToggle:hover {
  background-color: rgba(0, 0, 0, 0.18);
}

.TreeNode:not(:has(.TreeNodeChildren)) .TreeNodeToggle {
  visibility: hidden;
}

#modal {
	position: fixed;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	display: none;
	backdrop-filter: blur(1.5px);
}

/* ShowMessage dialog */

#ShowMessage {
	display: none;
}

#ShowMessage_Label {
	position: absolute;
	top: 50px;
	white-space: nowrap;
	left: 50%;
	transform: translateX(-50%);
}

#ShowMessage_Button {
	position: absolute;
	bottom: 40px;
	width: 100px;
	left: 50%;
	transform: translateX(-50%);
}

/*
#ShowMessage_close {
	position: absolute;
	width: 20px;
	height: 20px;
	background-image: url(/images/close.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
*/

#WebSocketStatusNotifier {
	position: fixed;
	right: 20px;
	bottom: -100px;
	width: max-content;
	border: 2px solid #FF5733;
	color: black;
	background-color: #FEE9FF;
	padding: 10px;  
	transition: bottom 0.5s cubic-bezier(0.2, 0.13, 0.27, 1.55);
}
