/*
 * style for error messages
 */
.qtpm-chart-disable {
	color: #1d0909;
	font-size: 16px;
	text-align: center;
	margin-top: 20%;
}

/* Loader Container */
.qtpm-loader-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
}

/* Rounded Loader Icon */
.qtpm-rounded-loader {
	border: 8px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	border-top: 8px solid #3498db;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

/* Spin Animation */
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

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

/* Hide loader */
.qtpm-loader-hidden {
	display: none;
}

/* style for dateduration */
.qtpm-chart-select-duration {
	display: flex;
	align-items: center;
	gap: 0px 9px;

	label {
		select {
			border: 1px solid rgba(229, 231, 235, 1);
			background-color: unset;
			padding: 9px 25px;
			line-height: 14px;
			background-size: 15px 15px !important;
		}
	}
}

.qtpm-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 30px 30px 0px 0px;
}

.qtpm-chart-main-container {
	display: none;
}

.qtpm-chart-disable {
	display: none;
}

#qtpm-chart-device,
#qtpm-chart-duration {
	border-radius: 7px;
}

.qtpm-chart-filter {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	width: 40px;
	font-size: 16px;
	height: 32px;
	border: 1px solid rgba(229, 231, 235, 1);
}

#qtpm-custom-duration {
	align-items: center;
	clear: both;
	display: none;
	flex-direction: row;
	float: inline-end;
	margin-top: 10px;

	input {
		width: 150px;
	}
}

#qtpm-date-error {
	clear: both;
	color: #ff3535;
	float: inline-end;
	font-weight: 700;
	margin-right: 78px;
	margin-top: 5px;
}

/* Style for chart container */
.qtpm-chart-container {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.qtpm-score-container,
.qtpm-overview-container {
	flex: 1;
	padding: 20px;
	display: flex;
	flex-direction: column;

	&.mobile {
		display: none;
	}
}

.qtpm-score-box {
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	border-style: solid;
	border-color: transparent;
	border-width: 1px;
	padding: 24px;
	position: relative;
	box-shadow: 6px 6px 54px 0px rgba(0, 0, 0, 0.05);

	.qtpm-chart {
		display: flex;
		margin-top: 20px;

		.qtpm-chart-canvas {
			width: 100%;
			height: 350px;
			position: relative;

			.qtpm-chart-messege {
				position: absolute;
				top: 45%;
				left: 55%;
				transform: translate(-50%, -50%);
				white-space: nowrap;
			}
		}
	}
}

/* style for suggestion-box */
.qtpm-suggestion-box,
.qtpm-general-suggestions {
	border-radius: 10px;
	border-style: solid;
	border-color: transparent;
	border-width: 1px;
	padding: 22px 24px;
	margin: 12px 20px 0px 20px;
	position: relative;
	box-shadow: 0px 4px 39px 9px rgba(69, 159, 132, 0.09);

	h3 {
		margin: 0px 0px 18px 0px;
		font-size: 18px;
		line-height: 18px;
		color: #23262F;
		font-weight: bold;
	}
}

.qtpm-icon-yes {
	color: rgb(47, 169, 122);
	font-size: 17px;
}

.qtpm-icon-no {
	color: rgb(224, 40, 40);
	font-size: 19px;
}

.qtpm-icon-warn {
	color: #E3CA0D;
	font-size: 17px;
}

.qtpm-alert-item,
.qtpm-general-item {
	display: flex;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 17px;
	color: rgba(43, 54, 116, 1);
	text-align: justify;
	margin-top: 15px;
	position: relative;
	cursor: pointer;
}

.qtpm-alert-item span,
.qtpm-general-item span {
	margin-right: 5px;
	font-size: 17px;
	height: 15px;
	width: 18px;
}

.description {
	font-weight: bold;
	cursor: pointer;
	position: relative;
}

/* style for tooltip */
.description[data-tooltip]:hover::after,
.description[data-tooltip]:hover::before {
	opacity: 1;
}

.description[data-tooltip]::after,
.description[data-tooltip]::before {
	content: '';
	position: absolute;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.description[data-tooltip]:hover::after {
	content: attr(data-tooltip);
	background: black;
	color: #fff;
	padding: 5px;
	border-radius: 5px;
	white-space: nowrap;
	z-index: 10;
	left: 0;
	top: -33px;
}

.description[data-tooltip]:hover::before {
	top: -5px;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: black transparent transparent transparent;
}

/* style for chart overview*/
.qtpm-overview-box {
	padding: 10px;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	font-family: "PlusJakartaSans-SemiBold", sans-serif;
}

.qtpm-overview-box h3,
.qtpm-score-box h3 {
	margin: 0 0 15px;
}

.qtpm-overview-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 30px;
}

.qtpm-overview-item {
	border-radius: 10px;
	border-style: solid;
	border-color: transparent;
	border-width: 1px;
	padding: 16px;
	position: relative;
	box-shadow: 6px 6px 54px 0px rgba(0, 0, 0, 0.05);
}

.qtpm-overview-item p {
	margin: 0;
}

.qtpm-overview-content {
	display: flex;
	justify-content: space-between;
}

h1.qtpm-score-number {
	font-weight: bold;
	font-size: 36px;
	padding: 12px 0px 20px 0px;
	line-height: 36px;
}

.qtpm-overview-top p,
h1 {
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 17px;
	text-transform: capitalize;
}

.overview-icon-positive,
.overview-icon-negative {
	width: 50px;
	height: 50px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 15px;
	overflow: hidden;
	min-width: 50px;
	min-height: 50px;
}

.overview-icon-positive {
	color: rgb(47, 169, 122);
	background-color: rgba(47, 169, 122, 0.2);
	;
}

.overview-icon-negative {
	color: rgb(180, 40, 40);
	;
	background-color: rgb(224, 40, 40, 0.2);
}

.qtpm-icon-performance {
	font-size: 35px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.qtpm-negative {
	color: rgb(224, 40, 40);
	margin-right: 5px;
	transform: scaleX(-1);
}

.qtpm-positive {
	color: rgb(47, 169, 122);
	margin-right: 5px;
}

/**
 * Applies styles for the chart container when the screen width is less than or equal to 768px.
 */
 @media screen and (max-width: 768px) {
	.qtpm-dashboard-header {
		flex-direction: column;
		margin: 0;
	}

	.qtpm-chart-container {
		.qtpm-chart {
			width: 100%;
			height: 350px;
			position: relative;

			.qtpm-chart-messege {
				position: absolute;
				top: 45%;
				left: 55%;
				transform: translate(-50%, -50%);
				white-space: nowrap;
			}
		}
	}
}

/* Media Queries for Tablet and Mobile */
@media (max-width: 768px) {
	.qtpm-chart-container {
		display: flex;
		flex-direction: column;
	}

	.qtpm-score-container {
		order: 2;
	}

	.qtpm-overview-container {
		order: 1;
	}

	.qtpm-score-box,
	.qtpm-overview-box {
		min-height: 250px;
	}

	.qtpm-overview-grid {
		grid-template-columns: 1fr;
	}

	.qtpm-icon-performance {
		font-size: 40px;
	}

	.qtpm-overview-item {
		padding: 10px;
		margin-bottom: 10px;
	}

	.qtpm-chart-select-duration {
		align-items: center;
		display: flex;
		float: right;
		flex-direction: row;
		gap: 5px;
		justify-content: center;
	}
}

@media (max-width: 375px) {
	.qtpm-alert {
		width: 270px;
	}
}

@media (max-width: 344px) {
	.qtpm-alert {
		width: 240px;
	}
}