/**
 * Frontend Styles
 *
 * @package BTMC_Gold_Price
 */

/* Error message styles */
.btmc-gold-price-error {
	padding: 16px;
	background-color: #fef2f2;
	border-left: 4px solid #ef4444;
	color: #991b1b;
	border-radius: 4px;
	margin: 20px 0;
}

/* Chart wrapper styles */
.btmc-gold-price-chart-wrap {
	margin: 20px 0;
}

.btmc-gold-price-chart-wrap .chart-filters {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
}

.btmc-gold-price-chart-wrap .chart-filters .btn-group {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btmc-gold-price-chart-wrap .chart-filters button {
	min-width: 80px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.btmc-gold-price-chart-wrap .chart-filters button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btmc-gold-price-chart-wrap .chart-filters button.active {
	font-weight: 600;
}

.btmc-gold-price-chart-wrap .chart-container {
	transition: opacity 0.3s ease;
}

.btmc-gold-price-chart-wrap .chart-loading {
	text-align: center;
	padding: 40px 20px;
}

.btmc-gold-price-chart-wrap .chart-loading .spinner-border {
	width: 3rem;
	height: 3rem;
}

.btmc-gold-price-chart-wrap .chart-error {
	margin-top: 15px;
}

.btmc-gold-price-chart-wrap .chart-legend {
	border-top: 1px solid #e5e7eb;
	padding-top: 15px;
}

.btmc-gold-price-chart-wrap .legend-item {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
}

.btmc-gold-price-chart-wrap .legend-item .badge {
	font-size: 20px;
	line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.btmc-gold-price-chart-wrap .chart-filters .btn-group {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		gap: 5px;
	}

	.btmc-gold-price-chart-wrap .chart-filters button {
		flex: 0 0 calc(33.333% - 3.34px);
		border-radius: 0.25rem !important;
		margin-bottom: 0;
		font-size: 0.875rem;
		padding: 0.375rem 0.5rem;
	}

	.btmc-gold-price-chart-wrap .chart-container {
		height: 300px !important;
	}

	.btmc-gold-price-chart-wrap .chart-legend .row {
		text-align: center !important;
	}

	.btmc-gold-price-chart-wrap .legend-item {
		justify-content: center;
		margin: 5px 0;
	}
}
