/*============================================*/
/*       SDGI CIRCULAR PROGRESS WIDGET        */
/*       Created: 2026/01/15                  */
/*       Version: 1.0.0                       */
/*============================================*/

.sdgi-circular-progress {
	position: relative;
	width: 90%;
	max-width: 320px;
	aspect-ratio: 1/1;
	margin: 0 auto;
	overflow: visible;
	border-radius: 20px;
	cursor: default;
	box-sizing: border-box;
}

.sdgi-circular-progress svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
}

.sdgi-circular-progress .center-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	width: 100%;
	z-index: 0;
}

.sdgi-circular-progress .percent-text {
	font-size: 2rem;
	font-weight: 700;
	color: #000;
	line-height: 1;
}

.sdgi-circular-progress .label-text {
	font-size: 1rem;
	color: #111;
	margin-top: 5px;
}

.sdgi-circular-progress .indicator-dot {
	width: 55px;
	height: 55px;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	cursor: pointer;
	z-index: 100;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.sdgi-circular-progress .dot-tooltip {
	position: absolute;
	bottom: 55px;
	left: 50%;
	transform: translateX(-50%) translateY(10px) scale(0.8);
	color: #000;
	padding: 5px 10px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.85rem;
	white-space: nowrap;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	pointer-events: none;
	z-index: 101;
}

.sdgi-circular-progress .dot-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	color: rgb(253, 216, 112);
	margin-left: -6px;
	border-width: 6px;
	border-style: solid;
	border-color: currentColor transparent transparent transparent;
}

.sdgi-circular-progress .indicator-dot:hover .dot-tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(0px) scale(1);
}

/* Responsive styles */

@media (max-width: 1024px) {
	.sdgi-circular-progress .indicator-dot {
		width: 45px !important;
		height: 45px !important;
	}
}

@media (max-width: 728px) {
	.sdgi-circular-progress .indicator-dot {
		width: 28px !important;
		height: 28px !important;
	}
}

@media (max-width: 425px) {
	.sdgi-circular-progress .percent-text {
		font-size: 1.6rem;
	}
	.sdgi-circular-progress .label-text {
		font-size: 0.8rem;
	}
}
