
/* Variables */
:root {
	--border-radius: 5px;
	--border-radius-circle: 1000px;
	--dark: #333;
	--light: #ededed;
	--light-transparent: #edededed;
	--shadow: rgba(0,0,0,0.4);
	--theme: #f06723;
	--theme-transparent: #f0b386;

	--red: rgb(255, 48, 51);
	--yellow: rgb(243, 243, 0);
	--green: rgb(68, 215, 67);
}

/* Animations */
@keyframes loading {
	from {transform: rotate(0deg);}
	to {transform: rotate(360deg);}
}

@keyframes bar-graph {
	from {right: 100%;}
	to {right: -1;}
}

@keyframes overlay-appear {
	from {-webkit-backdrop-filter: blur(0); opacity: 0;}
	to {-webkit-backdrop-filter: blur(10px); opacity: 1;}
}

@keyframes upload-arrows {
	to {background-position-y: -64px;}
}

@keyframes info-appear {
	from {opacity: 0; box-shadow: inset 5px 0 0px -10px;}
	to {opacity: 1; box-shadow: inset 7px 0 5px -10px;}
}

@keyframes viewer-inner-appear {
	from {opacity: 0; transform: scale(0.75);}
}

@keyframes learn-appear {
	from {transform: scale(0.5, 0); opacity: 0;}
}

@keyframes pop {
	from {opacity: 0; transform: scale(0.4);}
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
	display: block;

	margin: 0;
	padding: 0;

	background: var(--light);
	color: var(--dark);

	font-family: -apple-system,"Arial",sans-serif;
	font-weight: lighter;
	line-height: 130%;
}

h1, h2, h3, h4, h5, h6 {
	line-height: initial;
	white-space: normal;
}

select{
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDIwLjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0LjkgMTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQuOSAxMDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM0NDQ0NDQ7fQo8L3N0eWxlPgo8dGl0bGU+YXJyb3dzPC90aXRsZT4KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIxLjQsNC43IDIuNSwzLjIgMy41LDQuNyAiLz4KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSIzLjUsNS4zIDIuNSw2LjggMS40LDUuMyAiLz4KPC9zdmc+Cg==) no-repeat 95% 50%;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	border: none;
	border-radius: 0;
	padding: 5px 15px 5px 5px;
	margin: 5px;
	float: right;
}

.hidden {
	display: none;
}

.loading {
	width: 75px;
	height: 75px;
	border: 4px solid var(--theme-transparent);
	border-bottom-color: var(--theme);
	margin: auto;
	border-radius: 100%;
	vertical-align: middle;
	display: inline-block;
	animation: loading 0.75s linear infinite;
	will-change: transform;
}

.spinner .loading {
	animation: loading 0.75s linear infinite;
}

.bar-graph {
	position: relative;
	height: 40px;
	border-radius: var(--border-radius);
	overflow: hidden;
	background: white;
	cursor: pointer;
	transition: opacity 0.5s;
}

.bar-graph-progress {
	position: absolute;
	top: 0;
	right: 100%;
	bottom: 0;
	left: 0;
	animation: bar-graph 1s ease 0.5s;
	transition: background-color 0.3s;
}

.bar-graph:hover {
	opacity: 0.5;
}

.bar-graph-progress.red {
	background-color: var(--red);
}

.bar-graph-progress.yellow {
	background-color: var(--yellow);
}

.bar-graph-progress.green {
	background-color: var(--green);
}

.bar-graph-wrapper {
}

.floating {
	box-shadow: 0 7px 15px -3px var(--shadow);
}

.capitalize {
	text-transform: capitalize;
}

.underlay {
	background: var(--light-transparent);
	position: fixed;
	top: 0;
	left: 0;
	width: 500px;
	bottom: 0;
	transition: width 1s;
}

.underlay.fullscreen {
	width: 100%;
}

.overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.3);
	-webkit-backdrop-filter: blur(10px);
	z-index: 1000;
	text-align: center;
	animation: overlay-appear 0.25s;
}

.overlay::after {
	content: "";
	display: inline-block;
	vertical-align: middle;
	height: 100%;
}

.overlay > * {
	pointer-events: auto;
	vertical-align: middle;
}

.overlay > .loading,
.overlay > .drop-message {
	pointer-events: none;
}

.overlay.dropzone {
	background: rgba(4, 160, 224, 0.3);
	box-shadow: inset 0 0 75px rgba(4, 160, 224, 0.25);
	background-image: url(../img/misc/caret-up-solid.svg);
	color: pink;
	background-size: 40px auto;
	background-repeat: repeat-y;
	background-position-x: 20px;
	animation: upload-arrows 2s linear infinite, overlay-appear 0.25s;
}

.overlay .loading, .overlay .drop-message {
	display: none;
}

.overlay.loader .loading {
	display: inline-block;
}

.overlay.dropzone .drop-message {
	display: inline-block;
	padding: 5px 10px;
	color: white;
	background: rgba(4, 160, 224, 1);
}


.modal {
	background: var(--light);
	pointer-events: auto;
	display: inline-block;
	box-shadow: 0 7px 15px -3px var(--shadow);
	text-align: left;
	position: relative;
	min-width: 60%;
}

#Form {
	position: relative;
	max-width: 500px;
	z-index: 2;
	display: inline-block;
	white-space: nowrap;

}
::-webkit-scrollbar {
    display: none;
}

#Form .form-inner {
	max-width: 500px;
	overflow: hidden;
}

#Form .form, #Form .response {
	display: inline-block;
	width: 100%;
	white-space: normal;
	padding: 20px;
	position: relative;
	transition: left 0.75s;
	vertical-align: top;
	left: 0;
}

#Form.submitted .form, #Form.submitted .response {
	left: -100%;
}

#Form.submitted .form {
	max-height: 100vh;
}

#Form:not(.submitted) .response {
	max-height: 100vh;
}

#Form .decision-icon {
	animation: pop 0.5s cubic-bezier(1,.48,.37,1.78);
}

#Form .decision-icon.red {
	color: var(--red);
	text-shadow: 1px 1px darkred;
	-webkit-text-stroke: 0.25px darkred;
}

#Form .decision-icon.green {
	color: var(--green);
	text-shadow: 1px 1px darkgreen;
	-webkit-text-stroke: 0.25px darkgreen;
}

#Form .info-section {
	position: fixed;
	right: 0;

}

#Form h1 {
	margin: 30px;
}

#Form .element {
	border-radius: var(--border-radius);
	border: none;
	box-shadow: 2px 2px lightgrey;
}

#Form .section {
	margin: 70px 30px;
}

#Form h2 {
	border-bottom: 1px solid;
	padding-bottom: 5px;
}

#Form .items.flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}

#Form .items.flex .item {
	text-align: center;
	margin: 10px 10px 20px;
}

#Form .item {
	margin: 10px 0px 20px;
}

#Form .item .title {
	pointer-events: none;
	font-weight: bold;
	margin-bottom: 5px;
}

#Form .item .data-wrapper {
	position: relative;
}

#Form .item .data-wrapper.three {
	display: inline-block;
	width: 28%;
}

#Form .item .data-wrapper.three:not(:only-child):not(:last-child) {
	margin-right: 8%;
}

#Form .item .data-wrapper input {
	width: 100%;
	height: 2em;
	font-size: 1em;
	padding: 5px 10px 5px 10px;
	font-weight: 300;
	text-overflow: ellipsis;
}

#Form .item .data-wrapper input.has-units {
	padding: 5px 50px 5px 10px;
}

#Form .item .data-wrapper input::-webkit-outer-spin-button,
#Form .item .data-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#Form .item .data-wrapper input.valid {
}

#Form .item .data-wrapper input.invalid {
	color: var(--red);
}

#Form .item .data-wrapper button {
	-webkit-appearance: none;
	background: none;
	border: none;
	padding: 5px;
	cursor: pointer;
	color: lightgrey;
	margin: 0;
}

#Form .item .data-wrapper button:not(:only-child):last-child {
	margin-left: 15px;
}


#Form .item .data-wrapper button.green {
	color: var(--green);
	text-shadow: 1px 1px darkgreen;
	-webkit-text-stroke: 0.25px darkgreen;
}

#Form .item .data-wrapper button.red {
	color: var(--red);
	text-shadow: 1px 1px darkred;
	-webkit-text-stroke: 0.25px darkred;
}

#Form .item .unit {
	position: absolute;
	right: 15px;
	top: 0;
	line-height: 2em;
	pointer-events: none;
}

#Form .item .unit sup {
	position: absolute;
	top: -5px;
	font-size: 0.75em;
}


#Form .item .unit.left {
	right: unset;
	left: -17px;
}

#Form .submission-bar {
	margin: 70px 0;
	padding-bottom: 50px;
	text-align: right;
}

#Form .submission-bar button {
	margin-right: 30px;
	padding: 10px 25px;
	font-size: 1.1em;
	font-weight: bold;
	background: white;
	position: relative;
	display: inline-block;
	cursor: pointer;
}

#Form .submission-bar button:active {
	box-shadow: 1px 1px lightgrey;
	right: -1px;
	bottom: -1px;
}

.button.element:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Custom orange styling for Bootstrap btn-primary */
.btn-primary {
	background-color: #ff6600 !important;
	border-color: #ff6600 !important;
}

.btn-primary:hover {
	background-color: #e55a00 !important;
	border-color: #e55a00 !important;
}

.btn-primary:focus, .btn-primary.focus {
	background-color: #e55a00 !important;
	border-color: #e55a00 !important;
	box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.5) !important;
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active {
	background-color: #cc4400 !important;
	border-color: #cc4400 !important;
}

/* Modern Upload Interface Styling */
.modern-uploader {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 1rem;
}

.upload-area {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border: 2px solid transparent;
	border-radius: 20px;
	padding: 3rem 2rem;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	max-width: 600px;
	width: 100%;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.upload-area::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 20px;
	padding: 2px;
	background: linear-gradient(135deg, #ff6600, #ff8533, #ff6600);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	-webkit-mask-composite: xor;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.upload-area:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 20px 60px rgba(255, 102, 0, 0.15);
}

.upload-area:hover::before {
	opacity: 1;
}

@media (min-width: 1200px) {
	.upload-area {
		max-width: 700px;
		padding: 3rem 2.5rem;
	}
}

@media (max-width: 768px) {
	.modern-uploader {
		padding: 1rem 0.5rem;
	}
	
	.upload-area {
		max-width: 100%;
		padding: 2rem 1.5rem;
		border-radius: 16px;
	}
	
	.upload-area::before {
		border-radius: 16px;
	}
}

.upload-icon {
	font-size: 4.5rem;
	color: #ff6600;
	margin-bottom: 1.5rem;
	opacity: 0.9;
	transition: all 0.3s ease;
}

.upload-area:hover .upload-icon {
	transform: scale(1.1);
	opacity: 1;
}

.upload-title {
	color: #2c3e50;
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	letter-spacing: -0.025em;
}

.upload-description {
	color: #64748b;
	font-size: 1.1rem;
	margin-bottom: 2.5rem;
	line-height: 1.6;
	font-weight: 400;
}

.upload-btn {
	font-size: 1.125rem;
	padding: 1rem 2.5rem;
	border-radius: 12px;
	font-weight: 600;
	margin-bottom: 2rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	position: relative;
	overflow: hidden;
}

.upload-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.upload-btn:hover::before {
	left: 100%;
}

.upload-btn:hover {
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

.supported-formats {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.supported-formats small {
	color: #94a3b8;
	font-size: 0.95rem;
	font-weight: 500;
}

.supported-formats .fas {
	color: #ff6600;
	margin-right: 0.5rem;
}

@media (max-width: 768px) {
	.upload-icon {
		font-size: 3.5rem;
		margin-bottom: 1rem;
	}
	
	.upload-title {
		font-size: 1.5rem;
		margin-bottom: 0.5rem;
	}
	
	.upload-description {
		font-size: 1rem;
		margin-bottom: 2rem;
	}
	
	.upload-btn {
		font-size: 1rem;
		padding: 0.875rem 2rem;
		margin-bottom: 1.5rem;
	}
}

#InfoSection {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 500px;
	opacity: 0;
	background: #ededed50;
	box-shadow: inset 5px 0 0px -10px;
	animation: info-appear 0.5s ease 0.5s forwards;
}

#InfoSection .info-header {
	text-align: right;
}

#InfoSection .info-inner {
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 50px;
}

#InfoSection .fa-times {
	cursor: pointer;
	padding: 5px;
	margin: 20px;
	position: absolute;
	right: 0;
	top: 0;
	text-shadow: 0 0 5px var(--light);
}

#InfoSection .info-image img {
	display: none;
	max-width: 100%;
	max-height: 300px;
	margin: 30px auto;
}

#InfoSection .info-details {
	white-space: normal;
}

.viewer-container {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 500px;
	transition: left 1s;
}

#Viewer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.viewer-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 50px;
	animation: viewer-inner-appear 0.5s;
}

#Viewer .adsk-viewing-viewer .viewer-inner {
	position: fixed;
	top: 0;
	left: 0;
	right: -500px;
	bottom: 0;
	height: unset;
	animation: none;
}

.viewer-content {
	max-width: 500px;
	padding: 50px 5vw;
	background: white;
	text-align: center;
}

#Viewer .viewer-message {
	margin: 10px;
	font-weight: 500;
}

#Viewer .viewer-message.error {
	color: var(--red);
}

#FileUploader input {
	display: none;
}

#FileUploader label {
	padding: 10px 20px;
	margin: 10px;
	border-radius: var(--border-radius);
	background: var(--theme);
	color: white;
	display: inline-block;
	cursor: pointer;
	z-index: 10;
	position: relative;
}

.adml-logo {
	background: url(../img/logos/logo.png) no-repeat;
	height: 30px;
	width: 100px;
	display: inline-block;
	background-size: contain;
	margin: 20px;
	position: fixed;
	bottom: 0;
	right: 0;
	z-index: 2;
	filter: drop-shadow(0 0 5px var(--light));
	-webkit-filter: drop-shadow(0 0 5px var(--light));
	transition: opacity 0.3s ease;
}

/* Hide ADML logo when viewer is active to prevent toolbar interference */
.viewer-container:not([data-upload="true"]) ~ .adml-logo,
.adml-logo.hide-when-viewing {
	display: none;
}

.modal h1 {
	text-align: center;
	margin-top: 10px;
}

.modal input {
	width: 100%;
	padding: 5px;
}

.modal .close-modal {
	position: absolute;
	cursor: pointer;
	top: 10px;
	right: 10px;
	padding: 10px;
}

.modal .content {
	max-height: 70vh;
	padding: 50px;
	overflow: auto;
}

#Learn {
	transform-origin: bottom;
	position: absolute;
	bottom: 0;
	width: 100%;
	animation: learn-appear 1s cubic-bezier(1,0,.61,.15);
}

#Learn .bar-graph:hover {
	opacity: unset;
}

#Learn .bar-graph-progress {
	animation: none;
}

#Learn .bar-graph-slider {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
}

#Learn .login-error {
	color: var(--red);
	position: absolute;
}

#Learn .how-to {
	transition: height 0.5s 0.5s, border-bottom 0.5s 0.5s;
	margin: 0 30px -30px;
	height: 25px;
	overflow: hidden;
	position: relative;
	border-bottom: 1px solid transparent;
}

#Learn .how-to:hover {
	height: 110px;
	border-bottom: 1px solid lightgrey;
}

#Learn .how-to img {
	max-width: 400px;
	margin: auto;
	display: block;
}

@media only screen and (max-width: 1023px) {


	#content {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
	}

	#Form {
		height: unset;
		max-width: 100%;
	}

	#Form .form-inner {
		max-width: 100%;

	}

	#Viewer {
		flex-grow: 1;
		position: relative;
		height: 400px;
		border-bottom: 1px dashed lightgrey;
		z-index: 1;
	}

	#InfoSection {
		left: 0;
		background: var(--light);
	}

	.modal {
		height: 100%;
		display: block;
	}

	.modal .content {
		max-height: 100%;
	}

}

/* Clean AI Notice Styling */
.ai-notice {
	margin: 30px;
	padding: 20px;
	background: linear-gradient(135deg, #fff8f0 0%, #fef7ed 100%);
	border: 1px solid #fed7aa;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(255, 152, 0, 0.08);
}

.notice-content {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.ai-notice i {
	color: #ff6600;
	font-size: 1.25rem;
	margin-top: 2px;
	flex-shrink: 0;
}

.notice-text {
	flex: 1;
}

.notice-text strong {
	color: #1e293b;
	font-size: 1rem;
	font-weight: 600;
	display: block;
	margin-bottom: 6px;
}

.notice-text p {
	color: #64748b;
	font-size: 0.95rem;
	margin: 0;
	line-height: 1.5;
}

.ai-notice a {
	color: #ff6600;
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px dotted rgba(255, 102, 0, 0.5);
	transition: all 0.2s ease;
}

.ai-notice a:hover {
	color: #e55a00;
	border-bottom: 1px solid #e55a00;
	text-decoration: none;
}

/* AI Modal Styling */
.ai-modal {
	max-width: 500px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.ai-modal .content {
	padding: 40px;
	text-align: center;
}

.ai-modal-icon {
	margin-bottom: 24px;
}

.ai-modal-icon i {
	font-size: 3rem;
	color: #ff6600;
	opacity: 0.9;
}

.ai-modal h2 {
	color: #1e293b;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 16px;
	letter-spacing: -0.025em;
}

.ai-modal p {
	color: #64748b;
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 24px;
}

.contact-section {
	background: #f8fafc;
	border-radius: 12px;
	padding: 24px;
	margin: 24px 0;
	border: 1px solid #e2e8f0;
}

.contact-section h3 {
	color: #1e293b;
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.contact-section p {
	margin-bottom: 16px;
	font-size: 0.95rem;
}

.contact-info {
	background: white;
	border-radius: 8px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	text-align: left;
}

.contact-info strong {
	color: #1e293b;
	font-weight: 600;
}

.email-link {
	color: #ff6600 !important;
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	transition: all 0.2s ease;
}

.email-link:hover {
	color: #e55a00 !important;
	text-decoration: none;
}

.email-link i {
	font-size: 0.9em;
}

.modal-actions {
	margin-top: 32px;
}

.modal-actions .btn {
	padding: 12px 24px;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.2s ease;
}

/* Responsive adjustments for AI modal */
@media (max-width: 768px) {
	.ai-modal {
		max-width: 90vw;
		margin: 20px;
	}
	
	.ai-modal .content {
		padding: 30px 24px;
	}
	
	.contact-section {
		padding: 20px;
	}
}

@supports (-webkit-backdrop-filter: blur(10px)) {
	.underlay {
		-webkit-backdrop-filter: blur(50px);
		background: #ededed70;
	}
}
