/* Stock Index Cards Styles - Frame.png Design */
.stock-cards-container {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 0;
}

.stock-index-card {
	flex: 1;
	min-width: 180px;
	background: white;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 15px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	position: relative;
	overflow: hidden;
}

.stock-index-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #ccc;
}

.stock-index-card.positive-trend::after {
	background: #22c55e;
}

.stock-index-card.negative-trend::after {
	background: #ef4444;
}

.stock-index-card.neutral-trend::after {
	background: #6b7280;
}

.stock-card-header {
	margin-bottom: 8px;
}

.stock-code {
	font-size: 14px;
	font-weight: 600;
	margin: 0;
	color: #1f2937;
	text-align: left;
}

.stock-card-content {
	margin-bottom: 12px;
}

.stock-price {
	font-size: 18px;
	font-weight: bold;
	color: #1f2937;
	margin-bottom: 4px;
}

.stock-change {
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.change-arrow {
	font-size: 10px;
}

.change-value, .change-percent {
	font-weight: 500;
}

.stock-card-chart {
	height: 60px;
	width: 100%;
	margin-top: 8px;
}

.mini-chart-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mini-trend-line {
	width: 100%;
	height: 100%;
}

.mini-trend-line.trend-positive {
	color: #22c55e;
}

.mini-trend-line.trend-negative {
	color: #ef4444;
}

/* Actual Frame Design - Based on minichart.html */
.actual-frame-container {
	display: flex;
	gap: 8px;
	justify-content: flex-start;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	scrollbar-width: thin;
	scrollbar-color: #ccc transparent;
	min-height: 139px;
}

.actual-frame-container::-webkit-scrollbar {
	height: 6px;
}

.actual-frame-container::-webkit-scrollbar-track {
	background: transparent;
}

.actual-frame-container::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 3px;
}

.actual-frame-container::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.actual-frame-card {
	flex: 1 0 122px;
	min-width: 122px;
	background: var(--Background-White, white);
	border: 1px solid var(--Border-Stroke-2, #D9D9D9);
	border-radius: 4px;
	padding: 8px;
	position: relative;
	min-height: 135px;
	cursor: pointer;
	/* Không dùng transition: all — một số engine sẽ nội suy outline → nháy viền đen */
	transition: border-color 0.2s ease, border-width 0.2s ease, box-shadow 0.2s ease;
	display: inline-flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 2px;
	white-space: normal;
	outline: none;
	box-sizing: border-box;
}

.actual-frame-card:focus-visible {
	box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.45);
}

.actual-frame-card:hover {
	border: 1.5px solid var(--Border-Stroke-Brand, #2980B9);
	box-shadow: 0 2px 12px rgba(41, 128, 185, 0.15);
}

.actual-frame-card.active {
	background: var(--Text-Text-White, white) !important;
	border: 1.5px solid var(--Border-Stroke-Brand, #2980B9) !important;
	border-radius: 4px !important;
	box-shadow: 0 2px 12px rgba(41, 128, 185, 0.15) !important;
}

.actual-frame-card.active:hover {
	background: var(--Text-Text-White, white) !important;
	border: 1.5px solid var(--Border-Stroke-Brand, #2980B9) !important;
	box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2) !important;
	transform: none;
}

.frame-content {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
}

.frame-header {
	color: #141414;
	font-size: 14px;
	font-weight: 500;
	word-wrap: break-word;
	line-height: normal;
	letter-spacing: -0.5px;
	flex: 0 0 auto;
}

.frame-price {
	font-size: 14px;
	font-weight: 500;
	word-wrap: break-word;
	line-height: 1.2;
	letter-spacing: -0.5px;
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.frame-change {
	font-size: 12px;
	letter-spacing: -0.5px;
	font-weight: 400;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	align-content: center;
	line-height: normal;
	flex: 0 0 auto;
}

.frame-change-icon {
	font-size: 12px;
	display: inline-block;
	width: auto;
	height: auto;
	background: none !important;
	border: none !important;
	color: inherit !important;
	box-shadow: none !important;
}

.frame-chart {
	align-self: stretch;
	flex: 1;
	width: 100%;
	position: relative;
	overflow: hidden;
	min-height: 60px;
}

.frame-chart svg {
	width: 100% !important;
	height: 100% !important;
	display: block;
	box-sizing: border-box;
	max-width: 100%;
}

.frame-chart svg g {
	transform: scaleX(1);
}

.frame-chart svg path {
	vector-effect: non-scaling-stroke;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-miterlimit: 10;
	shape-rendering: geometricPrecision;
}

.frame-chart .highcharts-series-0 path {
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
	stroke-dasharray: none;
	stroke-dashoffset: 0;
}

.frame-chart .highcharts-series-0 .highcharts-area {
	filter: none;
	transition: all 0.3s ease;
}

.frame-chart svg {
	transition: all 0.3s ease;
}

.frame-chart .highcharts-series-0 .highcharts-graph {
	stroke-linecap: round;
	stroke-linejoin: round;
}

.frame-bottom-bar {
	width: 100%;
	height: 100%;
	overflow: hidden;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 1px;
	display: inline-flex;
	flex: 0 0 auto;
}

.frame-bottom-segment {
	height: 3px;
	border-radius: 2px;
}

.frame-bottom-segment:first-child {
	width: 44px;
	background: var(--Colors-Color-Price-Price-Up, #1AA67C);
}

.frame-bottom-segment:nth-child(2) {
	width: 19px;
	background: var(--Colors-Color-Price-Price-Fix, #E78B03);
}

.frame-bottom-segment:last-child {
	flex: 1 1 0;
	background: var(--Colors-Color-Price-Price-Down, #F5222D);
}


/* Timeframe Buttons Styles */
.timeframe-buttons-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px;
	height: 24px;
}

.timeframe-buttons-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.timeframe-btn {
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	padding: 4px 8px;
	font-family: 'Roboto', sans-serif;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	line-height: 100%;
	letter-spacing: -0.5px;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	text-align: center;
}

.timeframe-btn:hover {
	background: #f8f9fa;
	border-color: #bbb;
}

.timeframe-btn.active {
	background: #E5EFF7;
	border: 1px solid #CADFEE;
	color: #2980B9;
}

.timeframe-btn.active:hover {
	background: #E5EFF7;
	border-color: #CADFEE;
}

.fullscreen-btn {
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px !important;
	padding: 0px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.fullscreen-btn:hover {
	background: #f8f9fa;
	border-color: #bbb;
}

.fullscreen-btn img {
	width: 16px;
	height: 16px;
}

/* Trading Dashboard Styles - Based on provided image */
.trading-dashboard {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 12px;
	margin: 10px 0;
}

/* Gauge Container */
.gauge-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.gauge-chart {
	width: 200px;
	height: 120px;
	position: relative;
}

.gauge-label {
	background: #e9ecef;
	border-radius: 20px;
	padding: 8px 16px;
	text-align: center;
}

.status-text {
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
}

.status-text.strong-increase {
	color: #dc3545;
}

.status-text.average {
	color: #ffc107;
}

.status-text.decrease {
	color: #dc3545;
}

/* Status Cards */
.status-cards {
	display: flex;
	gap: 12px;
	width: 100%;
	max-width: 600px;
	justify-content: center;
}

.status-card {
	flex: 1;
	background: white;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transition: all 0.3s ease;
	min-width: 120px;
}

.status-card.active {
	border-color: #007bff;
	box-shadow: 0 4px 8px rgba(0,123,255,0.15);
}

.status-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-title {
	font-size: 14px;
	font-weight: 600;
	color: #495057;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.card-status {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}

.card-status.strong-increase {
	color: #28a745;
}

.card-status.average {
	color: #ffc107;
}

.card-status.decrease {
	color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
	.status-cards {
		flex-wrap: wrap;
		gap: 8px;
	}
	
	.status-card {
		min-width: calc(50% - 4px);
	}
	
	.gauge-chart {
		width: 160px;
		height: 100px;
	}
	
	/* Ensure horizontal scroll on smaller screens */
	.actual-frame-container {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}
	
	.actual-frame-card {
		flex: 0 0 150px;
		min-width: 150px;
	}
}

@media (max-width: 480px) {
	.status-cards {
		flex-direction: column;
	}
	
	.status-card {
		min-width: 100%;
	}
	
	/* Maintain fixed width and horizontal scroll on mobile */
	.actual-frame-container {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 10px;
	}
	
	.actual-frame-card {
		flex: 0 0 150px;
		min-width: 150px;
	}
}

/* Watchlist stock options hover effect */
#watchlist-stock-options .checkbox-item:hover {
	background-color: #f5f5f5;
	color: #000;
}

/* Watchlist stock options styling */
#watchlist-stock-options .checkbox-item {
	display: flex;
	align-items: flex-start;
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 2px;
	margin: 0;
	color: #333;
	text-decoration: none;
	transition: background-color 0.2s ease;
	border-bottom: 1px solid #f0f0f0;
}

#watchlist-stock-options .checkbox-item:last-child {
	border-bottom: none;
}

#watchlist-stock-options .checkbox-item input[type="checkbox"] {
	margin-right: 8px;
	margin-top: 2px;
	flex-shrink: 0;
}

#watchlist-stock-options .checkbox-item .stock-info {
	flex: 1;
}

#watchlist-stock-options .checkbox-item .stock-name {
	font-weight: 500;
	color: #222;
	font-size: 14px;
	line-height: 1.2;
}

#watchlist-stock-options .checkbox-item .stock-description {
	font-size: 12px;
	color: #666;
	margin-top: 2px;
	line-height: 1.2;
}

#watchlist-stock-options .checkbox-item .stock-exchange {
	font-family: Roboto;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: -0.5px;
	vertical-align: middle;
	color: #8C8C8C;
}


