/* HealthPulse Tools — matches the HealthPulse theme palette. */

.hpt-app { margin: 1.6em 0; }

.hpt-card {
	background: #f6faf9;
	border: 1px solid #e3eeec;
	border-radius: 12px;
	padding: 26px 28px;
	box-shadow: 0 2px 10px rgba(15, 60, 54, 0.06);
}

.hpt-intro { margin-top: 0; color: #5f7370; font-size: 0.95rem; }

.hpt-form { display: flex; flex-direction: column; gap: 14px; }

.hpt-row label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 5px;
	color: #1f2d2b;
}

.hpt-row input[type="number"],
.hpt-row input[type="date"],
.hpt-row input[type="time"],
.hpt-row select {
	width: 100%;
	max-width: 340px;
	padding: 10px 12px;
	border: 1px solid #cfdedd;
	border-radius: 8px;
	font-size: 1rem;
	background: #fff;
	color: #1f2d2b;
}

.hpt-row input:focus,
.hpt-row select:focus {
	outline: 2px solid rgba(14, 159, 138, 0.35);
	border-color: #0e9f8a;
}

.hpt-hint { display: block; font-size: 0.8rem; color: #5f7370; margin-top: 3px; }

.hpt-radios { display: flex; gap: 8px; flex-wrap: wrap; }

.hpt-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500 !important;
	font-size: 0.92rem !important;
	background: #fff;
	border: 1px solid #cfdedd;
	border-radius: 8px;
	padding: 8px 14px;
	cursor: pointer;
	margin-bottom: 0 !important;
}

.hpt-radio:has(input:checked) {
	border-color: #0e9f8a;
	background: rgba(14, 159, 138, 0.08);
}

.hpt-btn {
	align-self: flex-start;
	background: #0e9f8a;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 26px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.hpt-btn:hover { background: #0b7d6d; }

/* Result */

.hpt-result { display: none; margin-top: 22px; }
.hpt-result.show {
	display: block;
	border-top: 2px solid #e3eeec;
	padding-top: 20px;
	animation: hpt-fade 0.3s ease;
}

@keyframes hpt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.hpt-score {
	font-size: 2.4rem;
	font-weight: 800;
	line-height: 1.1;
	color: #1f2d2b;
	letter-spacing: -0.02em;
}

.hpt-score small {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #5f7370;
	letter-spacing: 0;
	margin-top: 2px;
}

.hpt-band {
	display: inline-block;
	margin: 12px 0 4px;
	padding: 6px 16px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
}

.hpt-band-good { background: #dff5e9; color: #157347; }
.hpt-band-info { background: #e3f0fb; color: #1b5e9e; }
.hpt-band-warn { background: #fdf0d8; color: #9a6b12; }
.hpt-band-bad  { background: #fbe3e3; color: #b42323; }

.hpt-scale {
	position: relative;
	height: 8px;
	border-radius: 4px;
	margin: 14px 0 6px;
	background: linear-gradient(90deg, #7fb7f0 0%, #3fbf9f 25%, #3fbf9f 50%, #f0c453 62%, #ef7d54 75%, #e05252 100%);
}

.hpt-scale span {
	position: absolute;
	top: -5px;
	width: 4px;
	height: 18px;
	background: #1f2d2b;
	border-radius: 2px;
	transform: translateX(-50%);
}

.hpt-stats { display: grid; gap: 8px; margin: 14px 0; }

.hpt-stat {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	background: #fff;
	border: 1px solid #e3eeec;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 0.95rem;
}

.hpt-stat span { color: #5f7370; }
.hpt-stat strong { color: #1f2d2b; white-space: nowrap; }

.hpt-times h4 { margin: 0 0 8px; font-size: 1rem; }

.hpt-note { font-size: 0.84rem; color: #5f7370; margin: 14px 0 0; }

.hpt-warn { color: #b42323; font-weight: 600; margin: 0; }

.hpt-crisis {
	background: #fbe3e3;
	border-left: 4px solid #b42323;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 0.95rem;
}

@media (max-width: 640px) {
	.hpt-card { padding: 20px 18px; }
	.hpt-row input[type="number"],
	.hpt-row input[type="date"],
	.hpt-row input[type="time"],
	.hpt-row select { max-width: 100%; }
	.hpt-score { font-size: 1.9rem; }
}
