/* Калькулятор процента жира */

.body-fat-form {
	padding: 1rem 0;
}

.body-fat-results {
	animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Шкала процента жира */
.bmi-scale-container {
	position: relative;
	margin: 2rem 0;
	padding: 0 10px;
}

.bmi-scale {
	display: flex;
	height: 24px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bmi-scale-segment {
	flex: 1;
}

.bmi-scale-segment.essential {
	background: linear-gradient(90deg, #dc3545, #fd7e14);
}

.bmi-scale-segment.athletes {
	background: linear-gradient(90deg, #fd7e14, #28a745);
}

.bmi-scale-segment.fitness {
	background: linear-gradient(90deg, #28a745, #17a2b8);
}

.bmi-scale-segment.average {
	background: linear-gradient(90deg, #17a2b8, #ffc107);
}

.bmi-scale-segment.obese {
	background: linear-gradient(90deg, #ffc107, #dc3545);
}

.bmi-scale-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--bs-secondary-color);
}

.bmi-marker {
	position: absolute;
	top: -8px;
	width: 4px;
	height: 40px;
	background-color: #212529;
	border-radius: 2px;
	transform: translateX(-50%);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	transition: left 0.5s ease;
}

.bmi-marker::after {
	content: '';
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #212529;
}

/* Значение процента жира */
.bmi-value-display {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.5rem;
}

.bmi-value {
	font-size: 4rem;
	font-weight: 700;
	color: var(--bs-primary);
	line-height: 1;
}

/* Адаптивность */
@media (max-width: 576px) {
	.bmi-value {
		font-size: 3rem;
	}

	.bmi-scale {
		height: 20px;
	}

	.bmi-marker {
		height: 32px;
	}

	.bmi-scale-labels {
		font-size: 0.65rem;
	}
}
