﻿@font-face {
	font-family: "KnijffIconsEx";
	src: url("../fonts/icomoon.eot");
	src: url("../fonts/icomoon.eot?#iefix") format("embedded-opentype"), url("../fonts/icomoon.woff") format("woff"), url("../fonts/icomoon.ttf") format("truetype"), url("../fonts/icomoon.svg#deen") format("svg");
	font-style: normal !important;
	font-weight: normal !important;
	font-variant: normal !important;
}

.row-flex {
	display: flex;
	margin-top: 0;
	align-items: center;
}

.toggle-switch-input {
	display: inline-block;
	position: relative;
	width: 40px;
	height: 22px;
}

	.toggle-switch-input input {
		opacity: 0;
		width: 0;
		height: 0;
	}

		.toggle-switch-input input:checked + .slider {
			background-color: #2196F3;
		}

			.toggle-switch-input input:checked + .slider:before {
				-webkit-transform: translateX(18px);
				-moz-transform: translateX(18px);
				transform: translateX(18px);
			}

	.toggle-switch-input .slider {
		position: absolute;
		cursor: pointer;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: #CCCCCC;
		-webkit-transition-duration: 0.4s;
		-moz-transition-duration: 0.4s;
		transition-duration: 0.4s;
	}

		.toggle-switch-input .slider:before {
			content: '';
			position: absolute;
			height: 18px;
			width: 18px;
			left: 2px;
			bottom: 2px;
			background-color: #FFFFFF;
			-webkit-transition-duration: 0.4s;
			-moz-transition-duration: 0.4s;
			transition-duration: 0.4s;
		}

		.toggle-switch-input .slider.round {
			border-radius: 34px;
		}

			.toggle-switch-input .slider.round:before {
				border-radius: 50%;
			}

	.toggle-switch-input:hover .slider:before {
		background-color: #9acffa;
	}

.disabled-toggle-switch,
.readonly-toggle-switch,
.disabled-toggle-switch .toggle-switch-input .slider,
.readonly-toggle-switch .toggle-switch-input .slider {
	opacity: 0;
	cursor: default !important;
}

.readonly-toggle-switch {
	opacity: 1;
}

.logout-popup-container {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	background-color: rgba(101, 101, 101, 0);
	z-index: 0;
	text-align: center;
	line-height: 100vh;
}

	.logout-popup-container.active {
		display: block;
		background-color: rgba(101, 101, 101, 0.2);
		z-index: 9999;
	}

.close-button {
	position: absolute;
	right: 0.25em;
	top: 0;
	width: 1.5em;
	height: 2em;
	cursor: pointer;
}

	.close-button:hover:before {
		color: rgba(236, 7, 141, 1);
	}

.close-button {
	right: 24px;
	top: 24px;
	height: 1.5em;
}

	.close-button:before {
		font-family: KnijffIconsEx;
		content: '[';
		color: #c7c7c7;
		font-size: 1rem;
	}

.content-popup {
	display: inline-block;
	margin: 64px;
	text-align: center;
}

.popup-header {
	font-size: 31px;
	font-weight: bold;
	font-stretch: normal;
	font-style: normal;
	line-height: 1.55;
	letter-spacing: normal;
	text-align: center;
	color: #212121;
	margin-bottom: 1rem;
}

.popup-sub-header {
	font-size: 18px;
	font-weight: normal;
	font-stretch: normal;
	font-style: normal;
	line-height: 1.78;
	letter-spacing: normal;
	text-align: center;
	color: #212121;
}

.popup-button-container .submit-button,
.popup-button-container .cancel-button {
	width: 120px;
	padding: 6px 0;
	margin: 0 8px 0.5em 8px;
	border-width: 1px;
	min-height: 0;
}

.detail-panel {
	display: inline-block;
	position: absolute;
	width: 49.58vw;
	top: 0;
	bottom: 0;
	right: 0;
	background-color: #fcfcfc;
	vertical-align: top;
	padding-bottom: 63px;
	overflow: auto;
}

	.detail-panel .mark-image {
		display: inline-block;
		width: 192px;
		margin: 32px auto 0px;
	}

	.detail-panel .content-popup {
		margin: 64px 6.3vw;
		display: block;
	}

	.detail-panel .popup-header {
		font-size: 40px;
		font-weight: bold;
		font-stretch: normal;
		font-style: normal;
		line-height: 1.5;
		letter-spacing: normal;
		text-align: center;
		color: #656565;
	}

	.detail-panel .popup-sub-header {
		font-size: 24px;
		font-weight: bold;
		font-stretch: normal;
		font-style: normal;
		line-height: 1.5;
		letter-spacing: normal;
		text-align: center;
		color: #656565;
	}

	.detail-panel .submit-button,
	.detail-panel .cancel-button {
		width: 10vw;
		min-width: 192px;
	}

	.detail-panel .caption {
		font-size: 16px;
		font-weight: 600;
		font-stretch: normal;
		font-style: normal;
		line-height: 1.5;
		letter-spacing: normal;
		color: #1a1a1a;
		text-align: left;
		white-space: nowrap;
	}

	.detail-panel .value {
		font-size: 16px;
		font-weight: normal;
		font-stretch: normal;
		font-style: normal;
		line-height: 1.5;
		letter-spacing: normal;
		color: #1a1a1a;
		text-align: left;
	}

.submit-button,
.cancel-button {
	border-color: #b1b1b1;
	border-radius: 4px;
	border-width: 1px;
	background-color: #c1c1c1;
	font-size: 16px;
	font-weight: 600;
	text-transform: none;
	line-height: 1.5;
	text-align: center;
	color: #ffffff;
	margin-left: 0px;
	padding: 0.725em 3em 0.65em;
	min-height: 48px;
	position: relative;
	cursor: pointer;
}

.popup-button-container .button-container {
	display: flex;
	align-items: center;
	justify-content: center;
}

.popup-button-container .submit-button:not(.disabled):hover,
.popup-button-container .cancel-button:not(.disabled):hover {
	border: 1px solid #1d76be;
	background-color: #2196F3;
	color: #ffffff;
}

.chat-result {
	position: relative;
	width: 100%;
	overflow: hidden auto;
	margin: 0 0 1em 0;
	padding: 10px;
	flex: 1;
}

.chat-result.hidden {
	display:none;
}

.perplexity-label > td {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	position: relative;
}

.perplexity-button {
	cursor: pointer;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-start;
	align-self: flex-end;
	color: #414042;
	background-color: #f7eb16;
	font-weight: 600;
	margin-bottom: 4px;
	padding: 7px 14px 6px 14px;
	border-radius: 2px;
	-webkit-transition: all linear 250ms;
	-moz-transition: all linear 250ms;
	transition: all linear 250ms;
}

	.perplexity-button:after {
		content: '';
		display: inline-block;
		width: 21px;
		height: 21px;
		margin-right: 6px;
		background: url( ../images/perplexity.png ) no-repeat center left transparent;
		background-size: 21px;
		-webkit-filter: brightness(0);
		-moz-filter: brightness(0);
		filter: brightness(0);
	}

	.perplexity-button:hover {
		background-color: #414042;
		color: #ffffff;
	}

		.perplexity-button:hover:after {
			-webkit-filter: brightness(100);
			-moz-filter: brightness(100);
			filter: brightness(100);
		}

.perplexity-icon {
	background: url( ../images/perplexity.png ) no-repeat center left transparent;
	background-size: 45px;
	display: inline-flex;
	padding-left: 55px;
}

.copy-chat-result,
.save-chat-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: #656565;
	font-family: "KnijffIconsEx" !important;
	font-size: 24px;
	cursor: pointer;
	-webkit-transition: color linear 300ms;
	-moz-transition: color linear 300ms;
	transition: color linear 300ms;
}

	.copy-chat-result:hover,
	.save-chat-result:hover {
		color: #5481c1;
	}

.copy-chat-result {
	font-family: "KnijffIconsEx" !important;
}

.chat-action-feedback {
	color: forestgreen;
	font-size: 14px;
}

.chat-message textarea {
	line-height: 1.35em;
	font-size: larger;
}

.button-bar fieldset {
	border-style: none !important;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.chat-send-button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: #5481c1;
	color: #ffffff;
	font-family: "KnijffIconsEx" !important;
	font-size: 24px;
	cursor: pointer;
	-webkit-transition: background-color linear 300ms;
	-moz-transition: background-color linear 300ms;
	transition: background-color linear 300ms;
}

	.chat-send-button:hover {
		background-color: #90baf5;
	}

	.chat-send-button.disabled {
		pointer-events: none;
		background-color: #e4e4e4;
		color: #a1a1a1;
		cursor: default !important;
	}

.perplexity-panel {
	display: flex;
	flex-direction: column;
	padding-bottom: 1rem;
}

	.perplexity-panel textarea:focus {
		border-color: dodgerblue;
	}

	.perplexity-panel .results-container {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		width: 100%;
		height: 100%;
		padding: 0 10px;
	}

	.perplexity-panel .content-popup {
		display: flex;
		flex-direction: column;
		align-items: center;
		flex: 1;
		margin: 64px 32px 0px 32px;
	}

	.perplexity-panel .popup-sub-header {
		margin-bottom: 10px;
	}

.perplexity {
	display: flex;
	flex-direction:column;
	width: 100%;
	text-align: left;
	overflow: hidden auto;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
}

	.perplexity:empty {
		display: none;
	}

	.perplexity p {
		margin: revert;
	}

	.perplexity li {
		margin-left: 1.35em;
		list-style: square;
	}

	.perplexity p:first-of-type {
		margin-top: 0;
	}

	.perplexity.error {
		border-color: red;
		background-color: #fff2f2;
	}

	.perplexity .error {
		color: red;
		font-weight: 500;
		text-align: center;
		margin: 0 auto;
	}

	.perplexity h4 {
		margin-bottom: 0.5em;
	}

	.perplexity .choises {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 2em;
		width: auto;
		font-family: 'Segoe UI';
		border-radius: 4px;
		border: 1px solid silver;
		padding: 0 20px 10px 20px;
		margin-top: 20px;
		margin-right: 5px;
	}

		.perplexity .choises .original-question {
			display: flex;
			align-items: center;
			gap: 8px;
			color: dodgerblue;
			font-weight: 700;
			font-size: 20px;
			padding: 10px 0 0 0;
		}

			.perplexity .choises .original-question:before {
				content: '?';
				background-color: orange;
				color: black;
				font-size: 21px;
				min-width: 28px;
				width: 28px;
				height: 28px;
				display: flex;
				border-radius: 50%;
				justify-content: center;
			}

	.perplexity .choise a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: dodgerblue;
		text-decoration: none;
		margin-right: 2px;
		font-size: 11px;
		font-weight: 500;
		vertical-align: super;
		padding: 0 2px;
		border: 1px solid transparent;
		border-radius: 2px;
	}

		.perplexity .choise a:hover {
			border-color: dodgerblue;
			background-color: #e7f3ff;
		}

	.perplexity .images {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 20px;
		margin-left: 16px;
	}

	.perplexity .image img {
		min-width: 150px;
		width: 10vw;
		height: auto;
		padding: 2px;
		background-color: white;
		border: 1px solid silver;
	}

	.perplexity .image a:hover img {
		border-color: dodgerblue;
	}

	.perplexity .references,
	.perplexity .images_container,
	.perplexity .questions {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
		font-size: smaller;
	}

		.perplexity .references a {
			display: inline-flex;
			align-items: center;
			gap: 0.5em;
			margin-left: 16px;
			text-decoration: none;
			color: darkslategray;
		}

			.perplexity .references a:hover,
			.perplexity .references a:focus {
				color: dodgerblue;
			}

			.perplexity .references a:before {
				content: attr(data-tag);
				display: flex;
				align-items: flex-end;
				justify-content: center;
				width: 16px;
				min-width: 16px;
				height: 16px;
				background-color: dodgerblue;
				color: white;
				border-radius: 50%;
				position: relative;
				top: 1px;
			}

	.perplexity div.reference {
		display: flex;
		align-items: center;
	}

	.perplexity .domain {
		color: silver;
	}

	.perplexity .question {
		border: 1px solid silver;
		border-radius: 4px;
		background-color: #f8f8f8;
		padding: 2px 8px 2px;
		cursor: pointer;
		margin-left: 16px;
	}

		.perplexity .question:hover {
			border-color: dodgerblue;
			background-color: #e7f3ff;
		}

	.perplexity .actions {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		border-top: 1px solid silver;
		padding-top: 8px;
	}

@keyframes scaling {
	0%, 100% {
		transform: scale(0.2);
		background-color: #30FFB7;
	}

	40% {
		transform: scale(1);
		background-color: #07DEFF;
	}

	50% {
		transform: scale(1);
		background-color: #0761FF;
	}
}

.working-on-it {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	visibility: hidden;
	margin-top: 0.5rem;
}

	.working-on-it.show {
		visibility: visible;
	}

	.working-on-it > div {
		display: inline-block;
		height: 16px;
		width: 16px;
		border-radius: 50%;
		transform: scale(0);
		background-color: red;
		animation: scaling 2.5s ease-in-out infinite;
	}

	.working-on-it.show {
		visibility: visible;
	}

	.working-on-it div:nth-child(2) {
		animation-delay: 0.4s;
	}

	.working-on-it div:nth-child(3) {
		animation-delay: 0.6s;
	}

	.working-on-it div:nth-child(4) {
		animation-delay: 0.8s;
	}

	.working-on-it div:nth-child(5) {
		animation-delay: 1s;
	}

@media print {
	.perplexity p {
		margin: 1em 0;
	}

	.perplexity li {
		padding-bottom: 0.5em;
	}

	.perplexity .choises {
		border-style: none;
	}

		.perplexity .choises > div {
			margin-bottom: 2em;
		}

		.perplexity .choises .original-question {
			font-size: 21px;
		}

			.perplexity .choises .original-question:before {
				margin-right: 8px;
			}

	.perplexity div.reference {
		padding: 3px 0px;
	}

	.perplexity .references a {
		color: dodgerblue;
		text-decoration: underline;
	}

		.perplexity .references a:before {
			margin-right: 0.5em;
		}

	.perplexity .images .image {
		margin-right: 20px;
	}
}
