.speed-simulation-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
/*	border: 1px solid #ddd; */
	padding: 20px;
}

.speed-simulation-tabs-wrapper {
    overflow: hidden;
    position: relative;
	
}

.speed-simulation-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    width: calc(100% - 80px); /* Adjust for carousel controls */
    overflow-x: auto;
    scroll-behavior: smooth;
    margin: 0 40px; /* Adjust for carousel controls */
	overflow: hidden;
}

.speed-simulation-tab {
    flex: 0 0 auto;
    padding: 15px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    min-width: 150px; /* Ensure tabs are wide enough on mobile */
}

.speed-simulation-tab i {
    margin-right: 8px;
}

.speed-simulation-tab.active {
    background: #fff;
    border-bottom: 2px solid #00D9A7;
    font-weight: bold;
}

.speed-simulation-content {
    display: none;
 /*   padding: 20px; */
}

.speed-simulation-content.active {
    display: block;
}

.speed-simulation-example {
    margin: 20px 0;
    padding: 20px;
    border-top: 1px solid #ddd;
   /* border-radius: 8px; */
   /* background: #fafafa; */
    position: relative;
}


.speed-simulation-example .label {
    font-size: 1.2em;
    font-weight: bold; 
	
    margin-bottom: 10px;
}

.speed-simulation-example .time {
    font-size: 1em;
   /* font-weight: bold; */
	color: #00D9A7;
    margin-bottom: 10px;
}

.speed-simulation-example .progress-bar {
    position: relative;
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
}

.speed-simulation-example .progress {
    height: 100%;
    background: #00D9A7;
    width: 0;
    transition: width 0.1s;
}

.speed-simulation-example .percentage {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 2px;
    z-index: 1000;
    font-size: 1em;
    transition: background 0.3s;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control.left {
    left: 10px;
}

.carousel-control.right {
    right: 10px;
}
