

/* GLOBAL  */


html,
body {
	min-height: 100%;
}

body.noscroll {
	overflow: hidden;
}

* {
	/* border: 1px solid red; */
}

*:not(i) {
	/* font-family: 'Courier New', Courier, monospace !important; */
	font-family: Arial, Helvetica, sans-serif;
	color: #5F5E5E;
}

a {
    /* text-decoration:none; */
    /* color: #BF432A; */
	color: #000;
}



.container-custom {
    margin: 0 5%;
}

.text-muted {
    opacity: 0.5;
}

.text-italic {
    font-style: italic;
}

/* Reduce contrast on placeholder text */
input::placeholder,
textarea::placeholder,
select::placeholder {
	color: #adb5bd !important;
	opacity: 0.6 !important;
}

/* Hide app content initially for fade-in effect */
#app-content {
	display: none;
}

/* Code Mirror 5  */

.CodeMirror {
    display: none;
    height: 600px;
}

.CodeMirror,
.CodeMirror pre {
    border: 1px solid #000;
    font-family: "Courier New", Courier, monospace !important;
    font-size: .8rem;
    line-height: 1.5rem;
}

/* CodeMirror Fullscreen */
.CodeMirror-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
    margin: 0 !important;
    background: #fff !important;
}

.CodeMirror-fullscreen .CodeMirror-scroll {
    height: 100% !important;
}

.codemirror-fullscreen-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.codemirror-fullscreen-btn:hover {
    background: #e0e0e0;
}

/* Toggle Button */
.btn-toggle {
    background-color: #e9ecef;
    color: #495057;
    border-color: #dee2e6;
}

.btn-toggle:hover {
    background-color: #dee2e6;
    color: #495057;
    border-color: #ced4da;
}

.btn-toggle.active {
    background-color: #212529;
    color: #ffffff;
    border-color: #212529;
}

.btn-toggle.active:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* LOGIN PAGE  */

.login-bg {
	background: url(/assets/images/wf_login_bg.jpg) center/cover no-repeat;
}

#login-wrapper p a {
	font-size: .9rem;
	color: #BF432A;
}

#login-wrapper h2 {
	margin: 0 0 20px;
	font-size:1.1rem;
	/* color:#5F5E5E; */
	line-height: 1.5rem;
}

#login-wrapper .legal {
	margin-top:40px;
}

#login-wrapper .legal p {
	font-size:.7rem;
	color: #4A5565;
}

#login-form-wrapper {
	margin: 0 auto;
	max-width: 400px;
}

#login-form-wrapper input {
	border: none;
	background: #F3F3F5;
	color: #717182 !important;
}

#login-form-wrapper button {
	display:block !important;
	width:100% !important;
	border-radius: 5px !important;
	border: none !important;
	background-color: #BF432A;
}

#login-form-wrapper button:hover {
	background-color: #b32e14;
}

body.login footer {
	display: none;
}


/* APP  */

#app {
	margin-bottom: 110px !important;
}

/* Bug fix  */
.row {
	max-width: 100% !important;
}
#app #app-header {
	/* padding: 12px; */
	height: 67px;
	/* border: 1px solid red; */
}

#app #app-header .row {
	/* border: 1px solid blue; */
}

#app #app-header .row div {
	/* border: 1px solid green; */
}

#app #app-header p {
	font-size: 1.3rem;
	font-weight: 600;
}

#app #app-body {
	padding: 30px;
	background: #FCFCFC;
}


#app-content {
	/* background: #f3f3f3; */
	padding: 30px;
}

.logo a {
	background: transparent !important;
}


/* ADMIN TOPNAV  */

ul#app-nav-primary {
    /* placeholder  */
}

ul#app-nav-primary li {
	/* padding: 5px; */
	margin: 0;
}

ul#app-nav-primary li.logo {
	background: #4D4D4D;
	padding: 15px;
}

ul#app-nav-primary li a {
	padding: 9px 15px;
    background: #fff;
	font-size: 1rem;
    color: #414346;
}

	ul#app-nav-primary li a.active {
		background: #f3f3f3;
	}






p { 
	margin:0 0 20px 0;
}

h1 {
	margin:0 0 30px;
	font-size: 2rem;
	font-weight: 600;
}


h2 {
	margin:0 0 25px;
	font-size: 1.5rem;
	font-weight: 500;
}

h3 {
	margin:0 0 20px;
	font-size: 1.2rem;
}

h4 {
	margin:0 0 5px;
}

a {
	text-decoration: none;
}

a:hover {
	/* text-decoration: underline; */
	color: blue;
}






ul#engine-nav {
    /* placeholder  */
}

ul#engine-nav li {
    margin-right: 15px;
}

ul#engine-nav li a {
	padding: 3px;
	font-size: .75rem;
	color: #666;
	border-bottom: 1px solid #fff;;
}

ul#engine-nav li a:hover {
	border-bottom: 1px solid #ccc;;
}

	ul#engine-nav li a.active {
		border-bottom: 1px solid #000;;
		color: #000;
	}


/* Admin-Only Navigation  */

.nav-admin {
	background: #fff !important;
}

.nav-admin a {
	background: #fff !important;
	color: red !important;
}

i.fa-admin {
	color: red !important;
}


	

footer {
	position: fixed;
	bottom: 0; 
	padding-top: 20px;
	padding-bottom: 15px;
	background-color: #353535;
	z-index: 1000;
}

body.login footer {
	background-color: #000;
	opacity: .75;
}

footer p {
	margin:0 0 10px 0;
	font-size:.9em;
	color:#FFF;
}

footer .legal {
	margin: 0 30px;
	font-size:11px;
	color:#FFF;
}

footer a {
	color:#ccc;
	text-decoration:none;
}

footer a:hover, footer a:visited:hover {
	color:#b73a20;
	text-decoration:none;
}


#form-wrapper {
	height: auto !important;
}

#engine-form {
	padding:10px 0 0 0;
}


#active-switch {
	margin:0 0 20px 0;
	display:inline-block;
}

div#closer {
	position:absolute;
	top:20px;
	right:20px;
	width:28px;
	height:28px;
	color: #666;
}

div#closer::before {
	content: "\f410";
	font-family: "Font Awesome 6 Pro";
	font-weight: 900;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

div#closer:hover {
	cursor:pointer;
	color: #b73a20;
}




/**
 * Modal
*/

#modal {
	display:block;
	position:fixed;
	top:-130px;
	left:0;
	z-index:10004;
	padding: 80px 15px 15px 15px;
	min-height:40px;
	min-width: 420px;
	max-width: 800px;
	width: 50%;
	border: 1px solid #666;
	/* font-family: Arial, Helvetica, sans-serif; */
	font-size: 1.2em;
	font-style: italic;
	color:#333;
	text-shadow: 1px 1px 1px rgba(255, 255, 255, 1);
	text-align:center;
}

#modal.good {
	background:#DEF5C4;
	border:1px solid #6C3;
}

#modal.bad {
	background:#FCF3F2;
	border:1px solid #CD2608;
}

#modal.confirm {
	padding:7px 7px 7px 5px;
	background:#F9ECEF;
	border:#FC6;
}



#url-placeholder {
	font-size:.8em;
	color:#999;
}

#url-placeholder:hover {
	cursor:pointer
}


/* Max length indicator */
input:focus,
textarea:focus {
	outline: none !important;
	box-shadow: none !important;
	/* border: 1px solid rgb(183, 183, 183) !important; */
}

input.maxlength-min,
textarea.maxlength-min {
	/* border: 1px solid rgb(66, 201, 255) !important; */
}
input.maxlength-ok,
textarea.maxlength-ok {
	border: 1px solid rgb(8, 145, 8) !important;
}
input.maxlength-max,
textarea.maxlength-max {
	border: 1px solid rgb(250, 100, 100) !important;
}


/* Ajax results  */

.ajax-results {
	/* margin-bottom: 30px; */
}

.ajax-results.ajax-success,
.ajax-results.ajax-success a {
	color: rgb(8, 145, 8) !important
}

.ajax-results.ajax-error,
.ajax-results.ajax-error a {
	color: rgb(250, 100, 100);
}

.ajax-results.ajax-warning,
.ajax-results.ajax-warning a {
	color: rgb(255, 165, 0);
}


/* Forms  */

input.required
textarea.required,
select.required,
div.required {
	background-color: rgb(255, 251, 251);
}

input.form-error,
textarea.form-error,
select.form-error,
div.form-error {
	border: 1px solid red !important;
}


/* Toast  */

.toast.text-bg-success,
.toast.text-bg-danger,
.toast.text-bg-info {
  background-color: #f8f8f8 !important;
  border: 1px solid #ccc !important;
  border-radius: 0.375rem !important;
}

.toast.text-bg-success .toast-body {
  color: #28a745 !important;
}

.toast.text-bg-danger .toast-body {
  color: #dc3545 !important;
}

.toast.text-bg-info .toast-body {
  color: #17a2b8 !important;
}

.toast[class*="text-bg-"] .btn-close {
  filter: none !important;
  opacity: 0.5 !important;
}

.toast[class*="text-bg-"] .btn-close:hover {
  opacity: 1 !important;
}



/* Forms  */

input.required,
textarea.required,
select.required,
div.required {
	background: rgb(255, 249, 249);
}

input.form-error,
textarea.form-error,
select.form-error,
div.form-error {
	border: 1px solid rgb(255, 86, 86);
}
