#main-content #content-wrapper {
  width: 100% !important;
}

#wrapper-banding {float:left; padding-top: 6px; padding-left: 0; width:100%; padding-bottom:20px;}
/* #wrapper-banding p {padding-left:2%;} */
:root{
  --bg:#f8fafc; --panel:#ffffff; --panel2:#f1f5f9; --line:#e2e8f0; --ink:#1e293b; --muted:#64748b;
  --good:#10b981; --accent:#3b82f6;
}

#wrapper-banding {float:left; padding-top: 6px; padding-left: 0; width:100%; padding-bottom:20px;}
/* #wrapper-banding p {padding-left:2%;} */

div .form-banding {
	width:100%; height: auto; background-color: white; border-bottom: solid 1px #ddd;
	padding: 3px 2px 5px 2px; z-index:99; 
}

div #input-banding {
	padding: 0px 5px 3px 5px; position:relative; vertical-align:top; border:1px;
	transition: all .3s ease-out;
	float:left; width: 24.25%; margin: 2px; height: 50px;
	
}
span.tutup{
	float:right; right:3px; top:-1px; position:absolute; color:#ddd; transition: color .3s ease-out; display:block;
}
span.tutup:hover{
	color:black; cursor:pointer; 
}

#input-banding input {
	transition: box-shadow .3s ease-out; border-radius: 8px; max-width: 100%; border:1px solid var(--line); background:#ffffff; color:var(--ink); font-size:13px; padding: 6px 8px;
}

#input-banding input:focus {
	-webkit-box-shadow:0 0 3px #0F0; 
	-moz-box-shadow: 0 0 3px #0F0; 
	box-shadow:0 0 3px #0F0; border: 1px solid #0F0;
}

#input-banding input:hover {
	-webkit-box-shadow:0 0 1px #0F0; 
	-moz-box-shadow: 0 0 1px #0F0; 
	box-shadow:0 0 1px #0F0; background-color: white;
}
#plus-more {
	float:left; margin:auto; height:74px; text-align: center; padding-left: 15px; padding-top:19px;
}
#plus-more span {
	margin: 0 auto; position: center; font-size: 10px; cursor:pointer; transition: box-shadow .3s ease-out;
}
#plus-more span:hover {
	margin: 0 auto; position: center; font-size: 10px; cursor:pointer;
	-webkit-text-shadow:0 0 3px #0F0; 
	-moz-text-shadow: 0 0 3px #0F0; 
	text-shadow:0 0 3px #0F0;
}
#button-banding {
	clear:left; padding: 5px 1px 5px 4px; height:20px;
}

#button-banding-child {
	float:left;
}
.hidden-box {
	display:none;
}

/* Modern inline error styling - no redirects needed */
.error-nf {
	box-shadow: 0 0 6px rgba(244, 67, 54, 0.4);
	border: 2px solid #f44336 !important;
	background-color: #ffebee !important;
	transition: all 0.3s ease;
}

.inline-error {
	display: none;
	margin-top: 5px;
	padding: 8px 12px;
	background-color: #ffebee;
	border-left: 4px solid #f44336;
	color: #c62828;
	font-size: 13px;
	font-family: 'Roboto', sans-serif;
	border-radius: 4px;
	animation: slideDown 0.3s ease-out;
}

.inline-error .error-icon {
	font-size: 16px;
	vertical-align: middle;
	margin-right: 6px;
	color: #f44336;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Old error styling - kept for backward compatibility but not used */
span.error {
	display: none; /* Hidden - we use inline errors now */
	font-size: 12px; 
	background: yellow;
}

.hasil-wrapper {
	margin:5px;padding:2px 2px 2px 0; border-bottom: solid 1px #ddd;
	max-width:98.5%; 
	overflow-x:scroll; overflow-y:hidden;
}
.hasil-wrapper table{
	border-spacing: 0;
	width:100%;
	height:100%;
	margin:0px;padding:0px;
	transition: all .3s ease-out;
	/* table-layout:fixed;       /* forces equal column widths */
  	border-collapse:collapse;
}
.hasil-wrapper tr:nth-child(even) { background-color:#f2f2f2; }
.hasil-wrapper tr:nth-child(even):hover { background-color:#82d5f3; }
.hasil-wrapper tr:nth-child(odd) { background-color:#ffffff; }
.hasil-wrapper tr:nth-child(odd):hover { background-color:#82d5f3; }

/* This is to highlight sub-category in the hasil-wrapper table */
/* TABLE HEADER */
.hasil-wrapper thead tr { background: linear-gradient(135deg, #4b748a 0%, #3e6275 100%) !important;}
.hasil-wrapper thead tr td { padding: 0.5em 0; overflow-wrap:anywhere; font-size:18px; font-family:Arial;	font-weight:bold; color:#fff; text-align:center;}
.hasil-wrapper thead tr td:first-child {border-left:#00FF00 solid 5px; text-align:left; padding-left: 6px; vertical-align: middle; }
.hasil-wrapper thead:hover tr{ background: linear-gradient(135deg, #4b748a 0%, #3e6275 100%) !important;}

.hasil-wrapper thead h6 a {color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; font-family: 'Roboto', Arial, sans-serif}
.hasil-wrapper thead td:hover a {text-decoration: none; color: #50c1e9;}

/* MODEL NAME 
.hasil-wrapper tr:nth-child(2) { background-color:#000; font-weight:700;}
.hasil-wrapper tr:nth-child(2) td { border-color:#000; padding-top: 0.5em; padding: 0.5em 0 2px 3px; }
.hasil-wrapper tr:nth-child(2):hover td{ background-color:#000;}
.hasil-wrapper tr:nth-child(2) h6 a {color: #fff;}
.hasil-wrapper tr:nth-child(2) td:hover a {text-decoration: none; color: #50c1e9;} */

/* DIMENSI */
.hasil-wrapper tr:nth-child(5) { background-color:#bde0ed; }
.hasil-wrapper tr:nth-child(5) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(5):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* LUAS BAGASI */
.hasil-wrapper tr:nth-child(15) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(15) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(15):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* DRIVETRAIN */
.hasil-wrapper tr:nth-child(19) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(19) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(19):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* PERFORMA */
.hasil-wrapper tr:nth-child(29) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(29) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(29):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* EKSTERIOR */
.hasil-wrapper tr:nth-child(36) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(36) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(36):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* INTERIOR */
.hasil-wrapper tr:nth-child(51) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(51) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(51):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* KENYAMANAN */
.hasil-wrapper tr:nth-child(70) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(70) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(70):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* KESELAMATAN */
.hasil-wrapper tr:nth-child(80) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(80) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(80):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* KEAMANAN */
.hasil-wrapper tr:nth-child(96) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(96) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(96):hover td { background-color:#bde0ed; border-color:#bde0ed;}

/* RAGAM INFORMASI */
.hasil-wrapper tr:nth-child(98) { background-color:#bde0ed;}
.hasil-wrapper tr:nth-child(98) td { border-color:#bde0ed; padding-top: 0.5em; padding: 0.5em 0 2px 3px;}
.hasil-wrapper tr:nth-child(98):hover td { background-color:#bde0ed; border-color:#bde0ed;}

.hasil-wrapper tbody tr:hover td{
	background-color:#f8f8f8;
}

.hasil-wrapper td{
	/* border:1px solid #dddddd; */
	border-width:0px 1px 1px 0px;
	text-align:left;
	vertical-align:top;
	padding:3px;
	font-size:13px;
	font-family:Lato, Arial, sans-serif;
	font-weight:normal;
	color:#000000;
	word-wrap: break-word;
	width: 20%;
}

.hasil-wrapper tr:nth-child(3) td:nth-child(2){
	padding:0px;
}

.hasil-wrapper tr:nth-child(3) td:nth-child(3){
	padding:0px;
}

.hasil-wrapper tr:nth-child(3) td:nth-child(4){
	padding:0px;
}

.hasil-wrapper td img {
	vertical-align: middle;
}
.hasil-wrapper td .image-item {
	min-height: 160px; /* or your desired height */
	display: flex;
	align-items: center;
	justify-content: center;
}


.hasil-wrapper tr:first-child td:first-child i {
	color: #fff;
}

.hasil-wrapper tr td:last-child {
	border-width:0px;
}
.hasil-wrapper tr:last-child td:last-child{
	border-width:0px 0px 0px 0px;
}
/*
.hasil-wrapper tr:first-child td{
	background-color:#ffff00;
	border:0px solid #dddddd;
	text-align:center;
	border-width:0px 0px 1px 1px;
	font-size:14px;
	font-family:Arial;
	font-weight:bold;
	color:#000000;
} 

.hasil-wrapper tr:first-child td:first-child{
	border-width:0px 0px 1px 0px;
}
.hasil-wrapper tr:first-child td:last-child{
	border-width:0px 0px 1px 1px;
} */

.hasil-wrapper a {
	color: #fff;
	text-decoration:none;
}

.hasil-wrapper tr.mini-race-sim-row {
	background-color: lightyellow;
}
.hasil-wrapper tr.mini-race-sim-row td:hover {
	background-color: lightyellow !important;
}

/* Fixed header table header width fix */
.hasil-wrapper thead.fixme2[style*="position: fixed"] tr {

	table-layout: fixed;
}

.hasil-wrapper thead.fixme2[style*="position: fixed"] td {
	box-sizing: border-box;
	/* Allow wrapping inside fixed header cells so long text doesn't force
	   the entire header row wider than the viewport. Keep overflow hidden
	   and ellipsis to preserve visual truncation when needed. */
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hasil-wrapper2 {
	position: relative;
	z-index: 20;
}

.hasil-wrapper2 p{
	padding:5px;
	font-size:12px;
	font-family:Arial;
	font-weight:normal;
	color:#000000;
}

#loading {
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	position: fixed;
	display: block;
	opacity: 0.8;
	background-color: #000;
	z-index: 10;
	text-align: center;
}

#loading-image {
	position: absolute;
	top: 50%;
	left: 40%;
	z-index: 100; opacity: 1.0;
}

#loading-image p {
	font-size: 16px; font-weight: bold;
	color: #00FF00; text-shadow: 0 0 10px white;
}

#button-banding-child p {
	font-size:12px; color: #aaa; margin-left:12px; margin-bottom: 2px;
}
#button-banding-child p:hover {
	font-size:12px; color: #000;
}

.divider {
	color: #ccc;
}

.graph-header-div {
	margin: 20px 0px -5px 0px;
	padding: 15px 20px;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 8px 8px 0 0;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	font-family: 'Roboto', Arial, sans-serif;
	letter-spacing: 0.5px;
}

.graph-container {
	position: relative;
	z-index: 20;
	margin: 0px 0px 20px 0px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	background: #ffffff;
	overflow: hidden;
}

.chart_sub {
	margin: 0;
	padding: 0;
	background: #ffffff;
	transition: all 0.3s ease;
}

.chart_sub:hover {
	background: #fafafa;
}

/* Individual chart divs styling */
#chart_div1, #chart_div2, #chart_div3, #chart_div4, #chart_div5, #chart_div6 {
	margin: 0;
	padding: 15px;
	background: #ffffff;
	transition: all 0.3s ease;
	border-bottom: 1px solid #f0f0f0;
}

#chart_div1:hover, #chart_div2:hover, #chart_div3:hover, 
#chart_div4:hover, #chart_div5:hover, #chart_div6:hover {
	background: #fafafa;
}

/* Remove border from last chart */
#chart_div6_sent {
	border-bottom: none;
}

#chart_div6 {
	border-bottom: none;
}

/* Professional chart container layout */
#graph-container-id {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
}

/* Loading overlay for charts */
.chart-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.chart-loading::after {
	content: '';
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #4285F4;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive design for charts */
@media screen and (max-width: 768px) {
	.graph-container {
		margin: 10px 2px;
	}
	
	#chart_div1, #chart_div2, #chart_div3, #chart_div4, #chart_div5, #chart_div6 {
		padding: 12px;
	}
	
	.graph-header-div {
		margin: 10px 2px 0 2px;
		padding: 12px 15px;
		font-size: 18px;
	}
}

@media screen and (max-width: 480px) {
	.graph-header-div {
		font-size: 16px;
		padding: 10px 12px;
	}
	
	#chart_div1, #chart_div2, #chart_div3, #chart_div4, #chart_div5, #chart_div6 {
		padding: 10px;
	}
}

.reco-inner-container {
	padding: 18px 6px;
	border-bottom: solid 1px #ddd;
	overflow: hidden; /* This ensures the container wraps around floated elements */
	min-height: 280px; /* Base height */
	transition: min-height 0.4s ease;
}

/* Expand container height when carousel is hovered. Accommodate expanded carousel at 600px + margins 
.reco-inner-container:hover {
	min-height: 680px; 
}*/

.reco-inner-container-bottom {
	padding: 12px 6px;
}

.reco-img-div {
	float: left;
	overflow: visible; /* Allow carousel cards to show outside bounds */
	width: 155px;
	height: 220px; /* Base height, will expand on hover */
	line-height: 155px;
	text-align: center;
	margin-top: 18px;
	margin-bottom: 18px;
	transition: all .3s ease-out;
}

/* Car Cards Carousel - Vertical Layout with Immediate Spread */
.car-cards-carousel {
    position: relative;
    width: 155px;
    height: 220px; /* Base height, will expand on hover */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expand carousel height on hover to accommodate all cards */
.car-cards-carousel:hover {
    height: 600px; /* Enough space for 4 cards vertically */
    z-index: 15;
}

.car-card-item {
    position: absolute;
    width: 100%;
    height: 165px; /* Fixed card height */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Initial stacked position - all cards on top of each other */
.car-card-item.card-primary {
    transform: translateY(0px) scale(1);
    z-index: 10;
}

.car-card-item.card-secondary:nth-child(2) {
    transform: translateY(30px) scale(0.9);
    z-index: 9;
    opacity: 0.8;
}
.car-card-item.card-secondary:nth-child(3) {
    transform: translateY(50px) scale(0.9);
    z-index: 9;
    opacity: 0.8;
}
.car-card-item.card-secondary:nth-child(4) {
    transform: translateY(70px) scale(0.9);
    z-index: 9;
    opacity: 0.8;
}


/* On carousel hover - spread all cards vertically with clear spacing */
.car-cards-carousel:hover .car-card-item.card-primary {
    transform: translateY(0px) scale(0.85);
    z-index: 12;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(2) {
    transform: translateY(120px) scale(0.85);
    z-index: 12;
    opacity: 1;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(3) {
    transform: translateY(240px) scale(0.85);
    z-index: 12;
    opacity: 1;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(4) {
    transform: translateY(360px) scale(0.85);
    z-index: 12;
    opacity: 1;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(5) {
    transform: translateY(480px) scale(0.85);
    z-index: 12;
    opacity: 1;
}

/* Individual card hover - bring focused card to front and slightly larger */
.car-cards-carousel:hover .car-card-item:hover {
    transform: translateY(var(--hover-y)) scale(0.95) !important;
    z-index: 20 !important;
}

/* Set custom hover positions for each card when individually hovered */
.car-cards-carousel:hover .car-card-item.card-primary:hover {
    --hover-y: -5px;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(2):hover {
    --hover-y: 115px;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(3):hover {
    --hover-y: 235px;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(4):hover {
    --hover-y: 355px;
}

.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(5):hover {
    --hover-y: 475px;
}

/* Rank badge styling - Rounded rectangle for better visibility */
.car-rank-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 32px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 25;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.car-card-item[data-rank="1"] .car-rank-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    box-shadow: 0 2px 12px rgba(255,215,0,0.4);
}

.car-card-item[data-rank="2"] .car-rank-badge {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    box-shadow: 0 2px 12px rgba(192,192,192,0.4);
}

.car-card-item[data-rank="3"] .car-rank-badge {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    box-shadow: 0 2px 12px rgba(205,127,50,0.4);
}

.car-card-item[data-rank="4"] .car-rank-badge {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    box-shadow: 0 2px 12px rgba(139,69,19,0.4);
}

/* Primary and secondary card styling */
.car-card-box.primary-card {
    width: 155px;
    height: 165px;
    border: 2px solid #0078d7;
    box-shadow: 0 4px 16px rgba(0,120,215,0.2);
}

.car-card-box.secondary-card {
    width: 155px;
    height: 165px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.car-card-item:hover .car-card-box.secondary-card {
    border-color: #0078d7;
    box-shadow: 0 4px 16px rgba(0,120,215,0.15);
}

/* Car card styling for RECO sections */
.car-card-box {
	width: 155px;
	height: 165px;
	min-height: 165px;
	overflow: hidden;
	border: 2px solid #ddd;
	border-radius: 6px;
	background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
	margin: 0;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	text-align: center;
	display: inline-block;
	vertical-align: middle;
	position: relative;
}

.car-card-box:hover {
	border-color: #0078d7;
	background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
	box-shadow: 0 4px 16px rgba(0,120,215,0.15);
	transform: translateY(-1px);
}

.car-result {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	align-items: stretch;
	box-sizing: border-box;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
	margin: 0;
	text-align: center;
}

.car-model-name {
	height: 55%;
	min-height: 55%;
	max-height: 55%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	font-weight: bold;
	color: #333;
	margin-bottom: 0;
	letter-spacing: -0.3px;
	padding: 6px 8px;
	transition: all 0.3s;
	word-wrap: break-word;
	hyphens: auto;
	line-height: 1.1;
	text-align: center;
}

.car-model-name:hover {
	color: #0078d7;
}

.car-model-name2 { /* Car model name styling on Popular Comparison */
	height: 80%;
	min-height: 80%;
	max-height: 80%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	font-weight: bold;
	color: #333;
	margin-bottom: 0;
	letter-spacing: -0.3px;
	padding: 6px 8px;
	transition: all 0.3s;
	word-wrap: break-word;
	hyphens: auto;
	line-height: 1.1;
	text-align: center;
}

.car-model-name2:hover {
	color: #0078d7;
}

/* Year info styling */
.car-year-info {
	height: 18%;
	min-height: 18%;
	max-height: 18%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8em;
	color: #666;
	font-weight: 500;
	padding: 3px 6px;
	transition: all 0.3s;
	background: rgba(0,0,0,0.03);
	border-top: 1px solid #eee;
}

.car-year-info.car-ended {
	color: #c77;
	background: rgba(199,119,119,0.05);
}

.car-year-info2 { /* Car Year Info styling on Popular Comparison */
	height: 20%;
	min-height: 20%;
	max-height: 20%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8em;
	color: #666;
	font-weight: 500;
	padding: 3px 6px;
	transition: all 0.3s;
	background: rgba(0,0,0,0.03);
	border-top: 1px solid #eee;
}

.car-year-info2.car-ended {
	color: #c77;
	background: rgba(199,119,119,0.05);
}

/* Engine info styling */
.car-engine-row {
	height: 27%;
	min-height: 27%;
	max-height: 27%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,120,215,0.05);
	border-top: 1px solid #eee;
	transition: all 0.3s;
}

.car-engine-info {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8em;
	color: #555;
	font-weight: 500;
	padding: 3px 6px;
	line-height: 1.2;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
}

.car-card-box:hover .car-engine-info {
	color: #333;
}

.car-card-box:hover .car-year-info {
	background: rgba(0,120,215,0.08);
}

.car-card-box:hover .car-engine-row {
	background: rgba(0,120,215,0.12);
}

/* Responsive adjustments for Carousel Cards on smaller screens */
@media screen and (max-width: 480px) {
	.reco-img-div {
		width: 100px;
		height: 170px; /* Adjusted height for smaller screens */
	}

	.reco-img-text-div {
		width: calc(100% - 140px) !important; /* Adjusted for smaller car card width + margins */
	}

	.car-card-box.primary-card {
		width: 100px;
		height: 120px;
	}

	.car-card-box.secondary-card {
		width: 100px;
		height: 120px;
	}

	.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(2):hover {
		--hover-y: 175px;
	}

	.car-card-item.card-secondary:nth-child(2) {
		transform: translateY(175px) scale(1);
	}

	.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(3):hover {
		--hover-y: 350px;
	}

	.car-card-item.card-secondary:nth-child(3) {
		transform: translateY(350px) scale(1);
	}

	.car-cards-carousel:hover .car-card-item.card-secondary:nth-child(4):hover {
		--hover-y: 525px;
	}

	.car-card-item.card-secondary:nth-child(4) {
		transform: translateY(525px) scale(1);
	}

	.car-card-item {
		width: auto; /* Adjusted card width */
	}
	
}



.reco-img {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	vertical-align: middle;
	
}

.reco-img-text-div {
	float: left;
	margin-left: 16px; 
	margin-right: 5px;
	padding-left: 24px;
	max-width: 500px;
	border-left: solid 1px #eee;
	margin-top: 18px;
	margin-bottom: 18px;
	width: calc(100% - 210px); /* Account for larger car card width + margins */
}

/* Performance Analysis Styles */
.perf-section {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f0;
}

.perf-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.perf-section h6 {
	color: #333;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
}

.perf-section p {
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 6px;
	color: #555;
}

.comparison-list {
	background-color: #f8f9fa;
	padding: 12px;
	border-radius: 4px;
	margin-top: 8px;
}

.comparison-list p {
	margin-bottom: 8px;
	font-size: 12.5px;
}

.comparison-list p:last-child {
	margin-bottom: 0;
}

p.red {
	color: red; background-color: white; display: inline; padding-left: 0;
}

.fixingfloat {
	clear: both;
}

.sumpet {
	display: none;
}

.reco-inner-container i {
	float:left; margin-right: 7px; padding-top: 2px; font-size: 20px; color: #aaa;
}

.hasil-wrapper i {
	float:left; font-size: 16px; margin-left: 2px; margin-right: 5px; padding-top: 2px; 
}

.saran-wrapper {
	margin:5px; padding:16px 20px 2px 20px;
	width:98.5%; display:inline-block; 
}

.saran-title {
	padding: 3px 5px;
}

.saran-content {
	border-left: solid 1px #ddd; border-right: solid 1px #ddd; border-bottom: solid 1px #ddd;
}

.saran-pair {
	clear:left; margin-bottom: 28px; height: 130px; width: 100%; border-top: solid 1px #ddd; padding: 26px 9%; 
}

.saran-img-container {
	float: left;
	width: 128px;
	height: 128px;
	text-align: center;
	margin: auto;
	text-overflow: ellipsis;

	display: flex;
	flex-direction: column;
	justify-content: stretch;
	align-items: stretch;
	box-sizing: border-box;
	padding: 0;
	background: linear-gradient(135deg, rgba(248,255,248,0.85) 0%, rgba(234,255,234,0.85) 100%);
	border: 1px solid rgba(170,170,170,0.35);
	border-radius: 6px;
	box-shadow: none;
	border-radius: 0;
	text-align: center;
}

.saran-img {
	margin: auto;
	width: auto;
	height: 100%;
}

.saran-img-container a {
	color: #535353; font-size: 0.95em;
}

.saran-img-container a:hover {
	color: #000; font-size: 0.95em;
}

.versus {
	float:left; display:block; margin: auto 20px; height: 110px; top: 50%; font-size: 2em; padding-top: 32px;
}


.myButton {
	font-size: 0.9em; width: 124px; height: 28px;
}

.saran-button {
	margin-left: 64px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	height: 100%;
	width: auto;
	text-align: right;
}

.saran-button i {
	font-size: 20px; padding-top: 6px;
}

a.back-to-top {
	display: none;
	width: 60px;
	height: 60px;
	position: fixed; margin: 0 auto;
	z-index: 999;
	right: 20px;
	bottom: 20px;
	opacity: 0.5;
	background: #efefef url("/wp-content/uploads/2016/11/up-arrow.png") no-repeat center;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	border-radius: 30px;
}

a.back-to-top:hover {
	background: #fff url("/wp-content/uploads/2016/11/up-arrow.png") no-repeat center;
	opacity: 1;
}

/*Media Queries - Must be bottom most*/
/*For browser/screen widths less than 768px*/
@media only screen and (max-width: 768px) {
	div#input-banding {
		width: 97%; margin-right: 1%; margin-left: 1%;
	}
	.hasil-wrapper {
		margin-left: 0; max-width: 100%;
	}
	#button-banding-child p {
		margin-top: 10px;
		margin-left: 0;
	}
	div#graph-container-id {
		overflow-y: hidden;
		overflow-x: scroll;
		font-size: 0.1em;
	}
	div#loading-image {
		left: 20%;
	}
	div.saran-pair {
		padding: 16px 6px;
	}
	div.saran-img-container {
		width: 72px; height: 72px;
	}
	div.saran-button {
		margin-top: 30px; margin-left: 60px;
	}
	div.saran-content {
		height: 800px;
	}
	a.saran-link {
		font-size: 0.88em;
	}
	.graph-header-div, .graph-container {margin: 0;}
}

/*
   LEGACY .form-banding-handle RULES (disabled)

   The following rules originally styled the .form-banding-handle. They
   have been intentionally disabled so jQuery UI classes (for example
   `ui-widget-header`, `ui-corner-top`) can provide the visual styling.

   Original rules (kept here as reference):

   .wrapper .form-banding + .form-banding-handle,
   .wrapper .form-banding-handle {
	   display: block !important;
	   width: 100% !important;
	   box-sizing: border-box !important;
	   background: #0f172a;
	   color: #fff !important;
	   padding: 10px 14px !important;
	   font-size: 14px !important;
	   font-weight: 600 !important;
	   cursor: pointer !important;
	   border-top: 1px solid rgba(255,255,255,0.04) !important;
	   border-bottom: 1px solid rgba(255,255,255,0.04) !important;
	   display: flex !important;
	   align-items: center !important;
	   justify-content: space-between !important;
	   z-index: 110 !important;
	   pointer-events: auto !important;
   }

   .wrapper .form-banding-handle .fb-label { flex: 1 1 auto; color: #fff; }
   .wrapper .form-banding-handle .fb-arrow {
	   width: 14px; height: 14px; flex: 0 0 14px; margin-left: 12px;
	   background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/></svg>");
	   background-repeat: no-repeat; background-position: center; transition: transform .25s ease;
   }

   .wrapper .form-banding-handle.handle-visible .fb-arrow { transform: rotate(180deg); }
   .wrapper .form-banding-handle.handle-hidden .fb-arrow { transform: rotate(0deg); }
*/

/* Keep form-banding visible override when not hidden-left */
.wrapper .form-banding:not(.hidden-left) { display: block !important; visibility: visible !important; width: 100% !important; box-sizing: border-box !important; }

/* Accordion behavior for .form-banding: prefer max-height transition instead of translateX.
	 This block has high specificity and will override older translateX-based rules. */
.wrapper .form-banding {
	overflow: hidden !important;
	max-height: 1000px !important; /* large enough to show content when open */
	transition: max-height 260ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease-in-out !important;
	opacity: 1 !important;
	transform: none !important; /* neutralize any translateX transforms */
	/* visible border that matches the handle styling; top border omitted so
	   the handle's bottom border visually connects to the form */
	border: 1px solid var(--line);
	border-top: 0;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	background: var(--panel);
	padding-top: 12px !important;
}
.wrapper .form-banding.hidden-left {
	max-height: 0 !important;
	opacity: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

/* Ensure the handle remains visible and accessible when form is collapsed */

/* Layout the handle so the label is left and the arrow sits at the right */
.wrapper .form-banding-handle {
	position: relative;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	box-sizing: border-box;
}
.wrapper .form-banding-handle .fb-label { flex: 1 1 auto; margin-right: 12px; }

/* Arrow icon inside the handle for car compare header */
.wrapper .form-banding-handle .fb-arrow {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wrapper .form-banding-handle .fb-arrow svg {
	width: 18px; height: 18px; display: block; transition: transform .22s ease;
	transform-origin: 50% 50%;
}
.wrapper .form-banding-handle.handle-visible .fb-arrow svg { transform: rotate(180deg); }
.wrapper .form-banding-handle.handle-hidden .fb-arrow svg { transform: rotate(0deg); }




.image-scroll-wrapper {
	position: relative;
	width: 100%;
	max-width: 100vw;
	margin: 0 auto;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.image-scroll-area {
	display: flex;
	transition: scroll-behavior 0.3s;
	overflow-x: auto;
	scroll-behavior: smooth;
	width: 100%;
	max-width: 100vw;
	/* Hide scrollbar for a cleaner look */
	scrollbar-width: none;
}
.image-scroll-area::-webkit-scrollbar {
	display: none;
}

.image-item {
	flex: 0 0 100%;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	justify-content: center;
	height: auto;
}

.image-item img {
	max-width: 100%;
	max-height: 200px;
	display: block;
	margin: 0;
	border-radius: 0px;
}

.scroll-btn {
	background: none;
	border: none;
	box-shadow: none;
	color: #222; /* or any color you want for the arrow */
	font-size: 2em;
	cursor: pointer;
	padding: 5px 5px;
	height: 100%;
	align-items: center;
	display: flex;
	justify-content: center;
	z-index: 2;
	transition: background 0.2s;
}
.scroll-btn:hover {
	background: none !important;
	color: #0078d7; /* highlight color on hover, optional */
}

@media (max-width: 400px) {
	.image-scroll-wrapper,
	.image-scroll-area,
	.image-item {
		width: 98vw;
		max-width: 98vw;
		min-width: 98vw;
	}
}

.fixed-header-table {
	background: #ffff00;
	border-collapse: collapse;
}
.fixed-header-table td, .fixed-header-table th {
	border: 1px solid #ddd;
	background: #ffff00;
}

/* Mini Race Simulation Styles */
.mini-race-container {
	max-width: 100%;
	font-family: 'Roboto', sans-serif;
}

.mini-race-header h4 {
	display: flex;
	align-items: center;
	margin-bottom: 8px;
}

.mini-race-header i.material-icons {
	font-size: 20px;
	margin-right: 8px;
}

.mini-race-controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 15px;
}

.mini-btn {
	background: #007bff;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	cursor: pointer;
	transition: background-color 0.2s;
	font-family: inherit;
}

.mini-btn:hover:not(:disabled) {
	background: #0056b3;
}

.mini-btn:disabled {
	background: #6c757d;
	cursor: not-allowed;
}

.mini-btn.play {
	background: #28a745;
}

.mini-btn.play:hover:not(:disabled) {
	background: #1e7e34;
}

.mini-btn.pause {
	background: #ffc107;
	color: #212529;
}

.mini-btn.pause:hover:not(:disabled) {
	background: #e0a800;
}

.mini-btn.reset {
	background: #6c757d;
}

.mini-btn.reset:hover:not(:disabled) {
	background: #545b62;
}

.mini-status {
	font-size: 12px;
	color: #495057;
}

.track-mini {
	background: #fff;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 15px;
	min-height: 120px;
}

.lane-mini {
	position: relative;
	height: 25px;
	margin: 2px 0;
	background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px;
	border: 1px solid #dee2e6;
	overflow: hidden; z-index: 1;
}

.car-mini {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	transition: left 0.1s ease-out, opacity 0.2s ease-out;
	border: 2px solid white;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	z-index: 1;
}

/* Simple CSS hover transparency for car icons to reveal time displays */
.car-mini:hover {
	opacity: 0.2;
	cursor: pointer;
}

.strip-mini {
	position: absolute;
	right: 0;
	top: 0;
	width: 3px;
	height: 100%;
	background: #007bff;
	opacity: 0.7;
}

.car-label-mini {
	position: absolute;
	left: 25px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 11px;
	color: #495057;
	font-weight: 500;
	white-space: nowrap;
	z-index: 0;
}

.time-display-mini {
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.6) 0%,
		rgba(255, 255, 255, 0.8) 5%,
		rgba(255, 255, 255, 1) 100%
		);
	position: absolute;
	right: 50px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 10px;
	color: #28a745;
	font-weight: 600;
	padding: 2px 4px;
	z-index: 0;
	pointer-events: none;
}

.moments-mini {
	width: 100%;
	font-size: 12px;
	border-collapse: collapse;
}

.moments-mini th,
.moments-mini td {
	padding: 4px 8px;
	text-align: left;
	border: 1px solid #dee2e6;
}

.moments-mini th {
	background: #e9ecef;
	font-weight: 600;
	color: #495057;
}

.moments-mini td {
	background: #fff;
}

.moments-mini .moment-cell {
	text-align: center;
	font-family: monospace;
	font-size: 11px;
}

/* Responsive adjustments for mini simulation */
@media (max-width: 768px) {
	.mini-race-controls {
		/* Keep controls arranged in a row on small screens; allow wrap if needed */
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: 8px;
	}

	.mini-race-header h5 {
		font-size: 14px;
	}
	
	.mini-btn {
		margin-bottom: 0;
	}
	
	.mini-status {
		/* Small left gap so status sits beside buttons */
		margin-left: 0px !important;
		margin-top: 0;
	}
	
	.car-label-mini {
		font-size: 10px;
	}
	
	.track-mini {
		padding: 10px;
		min-height: auto;
	}
}

@media (max-width: 480px) {
	.mini-race-container {
		padding: 2px;
	}
	
	.moments-mini {
		font-size: 10px;
	}
	
	.moments-mini th,
	.moments-mini td {
		padding: 2px 4px;
	}


}
