
/* --- CSS Variables and Global Styles --- */
:root {
	--color-bg: #FAF9F6;
	--card-bg: #ffffff;
	--text-primary: #002554;
	--text-secondary: #B9975b;
	--border-color: #ccc;
	--accent-positive: #002554;
    --accent-negative: #002554;
	--accent-nomove: #002554;
	--icon-bg-blue: #fff;
	--icon-text-blue: #000;
	--icon-bg-green: #e4e1e1;
	--icon-text-green: #000;
	--font-sans: "Inter", sans-serif;
}



body {
	font-family: var(--font-sans);
	background-color: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 1rem;
}

/* --- Main Card Container --- */
.stats-container {
	width: 100%;
	max-width: 1165px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

/* --- Individual Card Styling --- */
.stat-card {
	background-color: var(--card-bg);
	border-radius: 0px;
	/* box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1),
    0 -6px 12px -4px rgba(0, 0, 0, 0.1); */
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	transition: box-shadow 0.3s ease-in-out;
	border: 1px solid var(--lines);
}

/* .stat-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
} */

/* --- Card Sections --- */
.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.card-header h3 {
	font-weight: 500;
	font-size: 1.125rem;
	color: var(--primary);
	margin: 0;
}

.card-header p {
	font-size: 16px;
	color: var(--text-primary);
	margin: 0;
}

.card-main {
	text-align: center;
}

.line {
	border-top: 1px solid var(--lines);
	padding-top: 16px;
}

.card-main .price {
	font-size: 2.25rem;
	font-weight: 600;
	color: var(--secondary);
	margin: 0;
	line-height: 115%;
	
}

.card-main .price small {
	color: var(--primary);
	font-size: 20px;
}

.card-main .move {
	font-weight: 600;
	font-size: 1.125rem;
	margin-top: 0.25rem;
	display: block;
}

.move.positive {
	color: var(--accent-positive);
}

.move.negative {
	color: var(--accent-negative);
}

.move.nomove {
	color: var(--accent-nomove);
}

/* --- High/Low Range Visualizer --- */
.range-visualizer .labels {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	font-weight: 400;
	color: var(--primary);
	margin-bottom: 0.25rem;
}

.range-visualizer .bar {
	position: relative;
	width: 100%;
	background-color: var(--slider-background);
	border-radius: 9999px;
	height: 0.5rem;
}

.range-visualizer .indicator {
	position: absolute;
	top: 0;
	height: 0.5rem;
	width: 0.5rem;
	background-color: var(--text-primary);
	border-radius: 9999px;
	transform: translateX(-50%);
	transition: left 0.5s ease-in-out; /* a nice transition */
}

.lhBold
{
	font-weight: 500;
    color: var(--primary)
}

/* --- Details Section (Volume & Value) --- */
.card-details {
	border-top: 1px solid var(--lines);
	padding-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: center;
}

.detail-item .icon-wrapper {
	padding: 0.75rem;
	border-radius: 0px;
}

.text-content {
	text-align: center;
}

.icon-wrapper.blue {
	/* background-color: var(--tertiary); */
	color: var(--primary);
}

.icon-wrapper.green {
	/* background-color: var(--tertiary); */
	color: var(--primary);
}

.detail-item svg {
	height: 1.5rem;
	width: 1.5rem;
}

.detail-item .text-content p:first-child {
	font-size: 16px;
	color: var(--primary);
	margin: 0;
}

.detail-item .text-content p:last-child {
	font-weight: 500;
	font-size: 16px;
	color: var(--text-primary);
	margin: 0;
}

.poweredby {
    font-size: 8px;
    color: #999999;
    text-align: right;
    letter-spacing: 2px;
    height: 30px;
    border-top: 1px solid var(--line-color);
    padding-left: 24px;
    max-width: 200px;
    align-self: flex-start;
	
}

.poweredby img {
    height: 10px;
    padding-top: 10px;
}

/* --- Responsive Design --- */
@media (min-width: 640px) {
	body {
		padding: 0.5rem;
	}
}

@media (min-width: 768px) {
	.stats-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	body {
		padding: 0.5rem;
	}
	.stats-container {
		grid-template-columns: repeat(3, 1fr);
	}
}