:root {
	--card-radius: 12px;
	--primary-blue: #1e3a8a;
	--light-blue: #e0f2fe;
	--text-muted: #6b7280;
}

body {
	background: #f0f7ff;
	min-height: 100vh;
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial;
}

.container-lg {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.card {
	border: 0;
	border-radius: var(--card-radius);
	box-shadow: 0 6px 20px rgba(30, 58, 138, 0.1);
}

/* Form */

.form-control:focus {
	box-shadow: none;
	border-color: var(--primary-blue);
}
.small-muted {
	color: var(--text-muted);
	font-size: 0.85rem;
}

/* Result / Display */
.result-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	min-height: 350px;
	justify-content: flex-start;
}
.big-display {
	background: var(--primary-blue);
	color: #ffffff;
	border-radius: 12px;
	padding: 1rem;
	text-align: center;
	font-weight: 700;
	font-size: 2rem;
	box-shadow: inset 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.metrics {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
}
.metric {
	border-radius: 8px;
	flex: 1;
	text-align: center;
	padding: 0.8rem;
	box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}
.metric .label {
	font-size: 0.8rem;
	color: var(--primary-blue);
}
.metric .value {
	font-weight: 700;
	font-size: 1.2rem;
	margin-top: 0.2rem;
}

/* Chart */
.chart-wrapper {
	height: 180px;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	padding: 0.6rem;
	margin-top: 1rem;
}

/* Tips */
.tips li {
	margin-bottom: 0.4rem;
}

/* Spinner overlay */
#spinnerOverlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(30, 58, 138, 0.2);
	z-index: 1200;
}
#spinnerOverlay .spinner-box {
	background: #fff;
	padding: 14px;
	border-radius: 10px;
	display: flex;
	gap: 12px;
	align-items: center;
	box-shadow: 0 10px 30px rgba(30, 58, 138, 0.12);
}

footer {
	opacity: 0.8;
	color: var(--text-muted);
	padding-top: 1rem;
	font-size: 0.85rem;
}

@media (max-width: 767.98px) {
	.big-display {
		font-size: 1.6rem;
	}
	.chart-wrapper {
		height: 140px;
	}
	.metrics {
		flex-direction: column;
	}
}
