
:root {
	--bgColor: #333;
	--bgColor2: #666;
	--bgColor3: #111;
	--bgActive: #80a0ba;
	--txtActive: #fff;
	--txtColor: #efefef;
	--txtColorDis: #666;
	--linkColor1: #004175;
	--linkColor2: #37A5FF;
	--btnBg: #80a0ba;
	--btnColor: #fff;
	--clrDanger: #e82727;
	--clrGreen: #2ea913;
}

html {
	width: 100%;
	height: 100%;
}

body {
	margin: 0;
	padding: 0;
	user-select: none;
	overflow: hidden;
	font-size:100%;
}

h1, h2, h3 {
	font-weight: normal;
	color: var(--txtColorDis);
}

hr {
	color: transparent;
	background-color: transparent;
	border: none;
	border-bottom: dotted 1px var(--bgColor2);
}

fieldset {
	border-color: var(--bgColor2);
}

legend {
	color: var(--txtColorDis);
}

a {
	color: var(--linkColor);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

input, select, button {
	font-family: inherit;
	color: var(--txtColor);
}

.cells {
	background: url('../res/pattern.png') repeat;
}

.danger {
	color: var(--clrDanger) !important;
}

.gray {
	color: var(--txtColorDis) !important;
}

.yellow {
	color: #FFC924 !important;
}

::placeholder {
	color: var(--txtColorDis);
}

iframe, webview {
	border: none;
	width: 100%;
	height: 100%;
	padding: 0px;
	margin: 0px;
	box-sizing: border-box;
	background: #fff;
}

button {
	border: none;
	box-sizing: border-box;
	color: var(--btnColor);
	padding: 5px;
	padding-left: 10px;
	padding-right: 10px;
	background: var(--btnBg);
	font-family: inherit;
	font-size: 80%;
}

button:hover {
	filter: brightness(110%);
}

#hide {
	display: none;
}

.noPadding {
	padding: 0px;
}

.space {
	padding-left: 20px;
}

.disabled {
	pointer-events: none;
	filter: brightness(85%);
}

#main {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background-color: var(--bgColor);
	border: solid 1px var(--bgActive);
}

#tabs {
	box-sizing: border-box;
	z-index: 1000;
	background-color: var(--bgColor2);
}

#tabs .tab {
	font-size: 80%;
	display: block;
	float: left;
	cursor: pointer;
	color: var(--txtColorDis);
	white-space: nowrap;
	text-decoration: none;
	box-sizing: border-box;
	margin: 0px;
	padding-top: 3px;
	padding-bottom: 3px;
}

#tabs .tab:hover {
	background: var(--bgColor);
}

#tabs .tab.active {
	background: var(--bgColor);
	color: var(--txtColor);
	box-shadow: 0px 2px 0px var(--bgActive) inset;
}

#tabs .tab span {
	float: right;
	width: 12px;
}

#tabs .tab span.caption {
	width: auto;
	float: left;
	padding: 6px;
	padding-left: 12px;
}

#tabs .tab span.close {
	display: none;
}

#tabs .tab span.close,
#tabs .tab span.bullet {
	padding: 6px;
}

#tabs .tab:hover > .close {
	display: block;
}

#tabs .tab span.close:hover {
	color: var(--clrDanger);
}

#tabs .tab:hover > .bullet {
	display: none;
}

#tabs .tab.unsaved .caption:before {
	content: "*";
}

#tabs .tab.justSaved {
	animation: zoomAndBack 0.2s;
}

#tabs.noCloseButtons .bullet, #tabs.noCloseButtons .close {
	visibility: hidden;
	margin: 0 !important;
	padding: 0 !important;
}

/* window icons */

#winIcons a, #toolbar_info a {
	display: inline;
	width: auto;
	padding: 10px;
	font-size: 12px;
	display: block;
	float: left;
	cursor: pointer;
	color: var(--txtColor);
	white-space: nowrap;
	text-decoration: none;
	-webkit-app-region: no-drag;
}

#toolbar_info {
	margin-right: 40px;
}

.wQuit:hover {
	background-color: var(--clrDanger);
}

.wMinimize:hover {
	background-color: var(--btnBg);
}

.wRestore:hover {
	background-color: var(--btnBg);
}

#winIcons a:hover {
	color: var(--txtActive);
}

#closeFileBtn {
	color: var(--clrDanger);
}

/* general */

#content {
	display: flex;
	width: max-content;
	flex: 3;
	box-sizing: border-box;
	flex-direction: column;
	justify-content: space-between;
}

#editorWrapper {
	width: 100%;
	align-self: stretch;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	display: flex;
}

#editor {
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}

#colorBadge {
	position: absolute;
	width: 15px;
	height: 15px;
	box-shadow: 0px 0px 3px var(--bgColor);
	border: solid 1px var(--txtColor);
}

/* console */
#console {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-self: stretch;
	overflow: hidden;
}

#consoles {
	flex-grow: 1000;
	box-sizing: border-box;
}

#consoleToolbar {
	border-right: solid 1px var(--bgColor3);
	box-sizing: border-box;
	text-align: center;
	flex-grow: 0;
}

#consoleToolbar button {
	border: none;
	background: transparent;
	color: var(--txtColor);
	padding: 6px;
	text-align: center;
	outline: none;
	display: block;
}

#consoleToolbar button.active {
	background: var(--bgActive);
	color: var(--txtActive);
}

#console select {
	background: transparent;
	height: 100%;
	width: 100%;
	border: none;
	box-sizing: border-box;
	font-size: 80%;
	outline: none;
	color: var(--txtColor);
	overflow: auto;
}

#console select option {
	padding: 2px;
}

/* browser */

#s_browser.visible {
	width: 100%;
	height: 100%;
	overflow: auto;
	color: inherit;
	display: table;
	flex-direction: column !important;
}

#browser {
	height: 100%;
	margin: 0;
	display: block;
}

#browser.mobile {
	width: 375px;
	max-height: 667px;
	margin: auto;
}

#browser.mobile.landscape {
	height: 375px;
	width: 667px;
}

#s_browser div {
	display: table-row;
	height: 100%;
}

#browser_wrap {

}

#browser_options {
	position: absolute;
	margin-top: 10px;
	margin-left: 10px;
}

#browser_toolbar {
	display: flex !important;
	width: 100%;
	border-bottom: solid 1px var(--bgColor3);
	border-top: solid 1px var(--bgColor3);
}

#browser_toolbar input {
	border: none;
	padding: 2px;
	outline: none;
	padding-left: 24px;
	background-repeat: no-repeat;
	background-position: 4px center;
	background-color: var(--bgColor2);
	color: var(--txtColor);
	width: 100%;
	font-size: 0.8em;
	vertical-align: middle;
}

#browser_toolbar button {
	background: var(--bgColor2);
	color: var(--txtColor);
	padding: 6px;
}

#consoleToolbar button[disabled="disabled"] {
	color: var(--txtColorDis);
	opacity: 0.5;
	pointer-events:none;
}

.b_loaded {
	background-image: url('../res/globe.png');
}

.b_loading {
	background-image: url('../res/loader.png');
}

select option:checked {
	color: var(--txtActive);
	background-color: var(--bgActive)!important;
}

#toolbar {
	background: url('../res/lines_16.png') 8px center no-repeat var(--bgColor3);
	background-size: 16px 16px;
	-webkit-app-region: drag;
	padding-left: 26px;
	box-sizing: border-box;
}

#statusBar {
	color: var(--txtColor);
	background-color: var(--bgColor3)!important;
	border-top: solid 1px var(--bgColor);
	padding: 2px 0px;
	font-size: 70%;	
	text-align: right;
}

#statusBar a {
	margin-right: 15px;
	color: var(--txtColorDis);
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 300px;
	display: inline-block;
}

ul.menu {
	position: relative;
	margin: 0px;
	padding: 0px;
	list-style: none;
	display: block;
	float: left;
	z-index: 10000;
	-webkit-app-region: no-drag;
	font-size:75%;
}

ul.menu li > ul {
	display: none;
	width: 200px;
	background: var(--bgColor2);
	position: absolute;
	list-style: none;
	padding: 0px;
	margin: 0px;
	outline: solid 1px var(--bgColor3);
}

/* FIX: dodano da se prikazuje u JS-u, aktivno samo zbog sjene */
ul.menu li:hover > ul {
	/*display:block;*/
	filter: drop-shadow(3px 3px 3px var(--bgColor3));
}

ul.menu li:hover > ul ul {
	margin-left: 200px;
	margin-top: -29px;
}

ul.menu a {
	color: var(--txtColor);
	padding: 10px;
	display: block;
	text-decoration: none;
}

ul.menu a:hover {
	color: var(--txtActive);
}

ul.menu li:hover {
	background: var(--bgActive);
}

ul.menu li:hover a {
	/*color:var(--txtActive);*/;
}

ul.menu li.sep {
	border-bottom: solid 1px var(--bgColor3);
	margin-bottom: 4px;
	padding-top: 4px;
	opacity: 0.4;
}

ul.menu li.sep:hover {
	background: transparent;
}

ul.menu a span {
	color: var(--txtColorDis);
	font-size: 10px;
	float: right;
	margin-top: 2px;
}

ul.menu li.disabled a {
	color: var(--txtColorDis);
	opacity: 0.5;
	pointer-events: none;
}

ul.menu ul li a {
	padding: 6px;
	text-indent: 8px;
}

/* misc */

.marker {
	background: red;
	color: #fff;
}

#wrap {
	display: flex;
	flex: 1;
	height: 100px;
}

.scroll {
	overflow: auto;
	width: 100%;
	height: 100%;
	display: block;
}

#wait {
	cursor: wait;
	z-index: 50000;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.clear {
	clear: both;
}

.big {
	font-size: 50px;
}

.right {
	float: right;
}

.left {
	float: left;
}

.green {
	color: var(--clrGreen);
}

.padded {
	padding: 20px;
	box-sizing: border-box;
}

.gutter.gutter-horizontal {
	background: var(--bgColor3);
	cursor: e-resize;
	z-index: 5000;
}

.gutter.gutter-vertical {
	background: var(--bgColor3);
	cursor: n-resize;
	z-index: 5000;
}

/* treeview */

#tree {
	font-size: 80%;
}

#peakSpace {
	overflow: auto;
	max-height: 300px;
	max-width: 100%;
	display:block;
	background: var(--bgColor2);
	text-align:center;
}

#peakText {
	padding: 0px;
	margin: 0px;
}

#tree ul, #outline ul {
	list-style-position: inside;
	margin: 0px;
	padding: 0px;
	padding-left: 14px;
	list-style: none;
}

#tree ul.root {
	margin: 0px;
	padding: 0px;
	margin-top: 10px;
	margin-left: 10px;
}

#tree ul li, #outline ul li {
	text-decoration: none;
	white-space: nowrap;
}

#tree ul li .wrap {
	padding: 2px 6px 2px 2px;
	display: inline-block;
	text-decoration: none;
	color: var(--txtColor);
}

#tree ul li .wrap.active {
	background: var(--bgActive);
	color: var(--txtActive);
}

#tree ul li .wrap:active {
	background: var(--bgActive);
	color: var(--txtActive);
}

#tree ul li .wrap:focus {
	outline: dotted 1px var(--txtColorDis);
}

#tree ul li.closed ul {
	display: none;
}

#tree ul li .icon {
	margin-right: 5px;
	color: var(--txtColorDis);
}

#tree, #outline, #sidebar, #sidebar2 {
	box-sizing: border-box;
	overflow: auto;
}

#tree {
	height: 100%;
}

#tree .overlay {
	width: 100%;
	height: 100%;
	display: table;
	box-sizing: border-box;
	overflow: auto;
}

#tree .overlay a {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	text-decoration: none;
	color: var(--txtColorDis);
	font-size: 10px;
}

#tree li .rename {
	min-width: 150px;
	cursor: text;
	display: inline-block;
	outline: dotted 1px var(--linkColor1);
	color: var(--txtColor);
	background: var(--bgColor);
}

#tree #projName {
}

.runningServer:before {
	content: '● ';
	color: #75AC0F;
}

#sidebar2 {
	float: right;
}

.dragging {
	background: none;
	background-color: none;
}

/* outline */

#outline {
	padding: 0px;
	margin: 0px;
	width: 100%;
	height: 100%;
	overflow: hidden;
	font-size: 80%;
}

#outline input {
	background: url('../res/search.png') 5px center no-repeat var(--bgColor);
	color: var(--txtColor);
	border: none;
	padding: 5px;
	outline: none;
	box-sizing: border-box;
	height: 27px;
	position: sticky;
	width: 100%;
	text-indent: 20px;
}

#outline #list {
	display: block;
	margin: 0;
	overflow: auto;
	height: calc(100% - 27px);
	box-sizing: border-box;
	border-top: solid 1px var(--bgColor2);
}

#outline ul {
	margin: 0px;
	padding: 0px;
	margin: 0px;
}

#outline ul li a {
	display: inline-block;
	text-decoration: none;
	color: var(--txtColor);
}

#outline li {
	white-space: nowrap;
	padding: 2px;
}

#outline ul li:hover {
	color: var(--txtActive);
	background: var(--bgActive);
}

#outline ul li:hover a {
	color: var(--txtActive);
}

#outline ul li:hover .icon {
	color: var(--txtActive);
}

#outline ul li a:hover .args {
	text-decoration: none;
	color: var(--txtActive) !important;
}

#outline ul li a .args {
	color: var(--bgActive);
	padding-left: 5px;
	font-size: 80%;
}

#outline ul li .icon {
	color: var(--bgActive);
	padding-right: 4px;
	padding-left: 1px;
}

#outline ul li .icon.private {
	color: var(--txtColorDis) !important;
}

/* start */

#start {
	flex: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: url('../res/pattern.png') repeat;
}

#start a {
	color: var(--txtColor);
}

#start a:hover < li {
	text-decoration: underline;
}

#start a.icon:hover {
	color: var(--linkColor2);
}

#start ul {
	padding: 0px;
	line-height: 200%;
}

#start ul li {
	white-space: nowrap;
	overflow: hidden;
	padding-left: 10px;
	box-sizing: border-box;
	color: var(--txtColorDis);
}

#start .scroll {
	margin: auto;
	width: 500px;
}

#mruProjectsCont, #mruFilesCont {
	width: 300px;
	height: 80%;
	overflow: auto;
	font-size: 90%;
}

#start h3 a {
	visibility: hidden;
}

#start h3:hover a {
	visibility: visible;
	text-decoration: none;
}

#startLinks {
	position: absolute;
	bottom: 10px;
	display: flex;
	font-size: 80%;
}

#startLinks a {
	color: var(--linkColor1);
	padding: 10px;
}

#startLinks a span {
	color: var(--txtColorDis);
}

/* scrollbar */

::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	/*box-shadow: inset 0 0 6px rgba(0,0,0, 0.3);*/
	background: var(--bgColor2);
}

::-webkit-scrollbar-thumb {
	background: var(--bgColor3);
	border: solid 1px var(--bgColor2);
	box-sizing: border-box;
}

::-webkit-scrollbar-corner,
::-webkit-scrollbar-thumb:window-inactive {
	background: var(--bgColor3);
}

/* modal */

#lines_modal {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 15000;
	text-align: center;
	font-size: 90%;
}

#lines_modal a {
	color: var(--linkColor2);
}

#lines_modal_text {
	padding-top: 10px;
	padding-bottom: 10px;
	display: block;
	overflow: hidden;
}

#lines_modal_box {
	display: inline-block;
	background-color: var(--bgColor);
	color: var(--txtColor);
	max-width: 500px;
	min-width: 300px;
	margin: auto;
	padding: 20px;
	box-shadow: 0px 0px 20px var(--bgColor3);
	margin-top: 10%;
	text-align: left;
	border: solid 1px var(--bgActive);
	box-sizing: border-box;
}

#lines_modal_box.animate {
	animation: zoomAndBack 0.3s;
}

#lines_modal_box button {
	margin-right: 10px;
	margin-top: 20px;
	padding: 6px;
	padding-left: 14px;
	padding-right: 14px;
}

#lines_modal_box input,
#lines_modal_box select,
#lines_modal_box textarea {
	box-sizing: border-box;
	padding: 6px;
	background: var(--bgColor3);
	color: var(--txtColor);
	border: none;
	width: 100%;
}

#lines_modal_box input[type=checkbox] {
	width: auto;
}

#lines_modal_box textarea {
	height: 200px;
	width: 450px;
}

#lines_modal_box iframe {
	height: 300px;
	width: 100%;
	border: solid 1px var(--bgColor2);
}

#lines_modal_box input:focus,
#lines_modal_box button:focus,
#lines_modal_box textarea:focus,
#lines_modal_box select:focus {
	outline: dotted 1px var(--txtColorDis);
}

#lines_modal_box input[disabled],
#lines_modal_box input[readonly],
#lines_modal_box button[disabled],
#lines_modal_box textarea[disabled],
#lines_modal_box select[disabled] {
	color: var(--txtColorDis);
}

#lines_modal_box button[disabled] {
	background-color: var(--bgColor3);
}

/* document colors */

button.colorListItem {
	border: solid 1px var(--txtColorDis);
	width: 24px;
	height: 24px;
	float: left;
	display: block;
	margin: 0px;
	margin-right: 5px!important;
	margin-bottom: 5px!important;
	padding: 0px!important;
}

.colorListItem.selected {
	border-color: yellow;
}

/* ace search*/

.ace_search {
	background: var(--bgColor);
	color: inherit;
	border: none;
	border-radius: none;
	box-shadow: 0px 0px 5px var(--bgColor3);
}

.ace_search input {
	background: var(--bgColor2);
	color: inherit;
	border-radius: none;
	font-family: inherit;
	;
}

.ace_search_field {
	border-radius: none;
	background: var(--bgColor2);
	color: inherit;
	border: none;
	border-right: 0 none;
	outline: 0;
	padding: 0;
	margin: 0;
	line-height: inherit;
	padding: 0 6px;
	min-width: 17em;
	vertical-align: top;
	min-height: 1.8em;
	box-sizing: content-box;
}

.ace_searchbtn {
	background-color: var(--btnBg);
	color: var(--btnColor);
	border: none;
	border-radius: none;
	border: none;
	border-radius: none;
	border-left: 1px solid var(--bgColor);
}

.ace_button {
	margin-left: 2px;
	cursor: pointer;
	user-select: none;
	overflow: hidden;
	opacity: 0.7;
	border: none;
	padding: 1px;
	box-sizing: border-box!important;
	color: inherit!important;
	border: none;
	border-radius: none;
}

.ace_button:hover, .ace_searchbtn:hover {
	background: var(--bgColor3);
	color: var(--btnColor);
}

.ace_searchbtn:last-child {
	border-radius: none;
	border-right: none;
}

.ace_button.checked {
	background: var(--btnBg);
	color: var(--btnColor);
}

.ace_button,
.ace_searchbtn,
.ace_search_field,
.ace_search input {
	font-family: inherit!important;
	font-size: inherit;
}

/* disable drag on elements */

#tabs a, #toolbar a, #outline a, #statusBar a {
	-webkit-user-drag: none;
}

/* ui tabs */

.uiTabs {
	display: block;
	padding: 0px;
	margin: 0px;
}

.uiTab {
	display: table;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
}

.uiTabsBtns {
	border-bottom: solid 1px var(--bgColor2);
	display: block;
	padding-top: 5px;
}

.uiTabsBtns button {
	background-color: inherit;
	margin: 0px !important;
	outline: none !important;
	color: var(--txtColor);
}

.uiTabsBtns button:hover, .uiTabsBtns button[disabled] {
	filter: none;
}

.uiTabsBtns button:first-child {
	margin-left: 5px !important;
}

.uiTabsBtns button.active {
	background-color: var(--bgColor2);
	color: var(--txtColor);
}

/* settings ui */

#settingsForm {
	border-bottom: solid 1px var(--bgColor3);
	width: 600px;
	display: block;
	margin: 0px !important;
	padding: 0px !important;
}

#settingsForm .uiTab {
	padding: 20px;
	padding-right: 0px;
	overflow: auto;
	display: table;
	height: 450px;
	width: 100%;
}

#settingsForm input {
	width: 330px;
}

.settingsGroup {
	display: table-row;
}

.settingsGroup label {
	padding-right: 10px;
	text-transform: capitalize;
	font-size: 80%;
}

.settingsGroup div, .settingsGroup label {
	display: table-cell;
	border-bottom: dotted 1px var(--bgColor2);
	padding-top: 10px;
	padding-bottom: 10px;
	white-space: nowrap;
	box-sizing: border-box;
	vertical-align: middle;
}

.settingsGroup input, .settingsGroup select {
	margin: 0px;
	display: block;
}

.settingsGroup a {
	padding-left: 5px;
	text-decoration: none;
	display: table-cell;
	vertical-align: middle;
}

/* PLUGINS */

#pluginList {
	min-width: 400px;
	min-height: 300px;
	max-height: 400px;
	display: block;
	overflow: auto;
}

#pluginUI {
	background-position: right top;
	background-repeat: no-repeat;
	background-size: 128px;
	max-height: 500px;
	overflow: auto;
}

#pluginList.loading {
	background: url('../res/loader.png') no-repeat center center;
}

.pluginItem {
	padding: 10px;
	color: var(--txtColor) !important;
	display: block;
}

.pluginItem:hover {
	background: var(--bgActive);
	color: var(--txtActive) !important;
	text-decoration: none;
}

.pluginItem .icon {
	color: var(--txtColor);
	padding-right: 10px;
}

.pluginMessage {
	display:block;
	font-size: 0.9em;
}

.pluginTags {
	text-align: center;
	font-family: monospace;
}

/* color picker */

.a-color-picker {
	background: inherit;
	box-shadow: none;
}

.a-color-picker-row {
	padding: 5px 0px 5px 0px;
	border: none !important;
}

.a-color-picker-sl {
	border-radius: 0px;
}

/* special */

.hide {
	display: none;
}

.i-folder {
	color: var(--bgColor2);
}

.i-file {
	color: var(--bgColor2);
}

/* small space */

@media all and (max-width: 850px) {

	#mnHelp {
		display: none;
	}
}

/* fx */

.pulse {
	animation: zoomAndBack 0.2s infinite;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}

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

	50% {
		transform: scale(1.1);
	}

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



