* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: #f0f2f5;    
        min-height: 100vh;
        color: #333;
    }

    .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px;
    }

    .header {
        text-align: center;
        margin-bottom: 20px;
        color: #333;
        padding: 0 10px;
    }

    .header h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .header p {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    .tabs {
        display: flex;
        justify-content: center;
        margin-bottom: 0; /* Remove bottom margin */
        background: white;
        border-radius: 10px 10px 0 0; /* Rounded corners only at top */
        overflow: hidden;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }

    .tab-button {
        padding: 15px 40px;
        background: #f8f9fa;
        border: none;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        color: #6c757d;
    }

    .tab-button.active {
        background: green;
        color: white;
    }

    .tab-button:hover:not(.active) {
        background: #e9ecef;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
    }

    .lab-layout {
        display: grid;
        grid-template-columns: 1fr 1.5fr 1.5fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .controls-panel, .environment-panel, .chart-panel {
        background: #fff;
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        height: fit-content;
    }

    .output-panel {
        display: flex;
        flex-direction: column;
        gap: 20px;
        height: fit-content;
    }

    .vehicle-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .vehicle-header h4 {
        margin: 0;
    }

    .remove-btn {
        background-color: #e53e3e;
        color: white;
        border: none;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
    }

    .remove-btn:hover {
        background-color: #c53030;
    }

    .button-container {
        display: flex;
        gap: 10px;
        margin: 15px 0;
    }

    .secondary-btn {
        background-color: #667eea;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        flex: 1;
    }

    .secondary-btn:hover {
        background-color: #5a67d8;
    }

    .primary-btn {
        background-color: #48bb78;
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        flex: 1;
    }

    .primary-btn:hover {
        background-color: #38a169;
    }

    hr {
        border: none;
        border-top: 1px solid #e2e8f0;
        margin: 15px 0;
    }


    /* Add these styles to your existing CSS file or replace the existing ones */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-field::-webkit-outer-spin-button,
.input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-field[type=number] {
    -moz-appearance: textfield;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.vehicle-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vehicle-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 600;
}

.remove-btn {
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.remove-btn:hover {
    background-color: #c53030;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #667eea;
}

.button-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.secondary-btn {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    transition: background-color 0.3s ease;
}

.secondary-btn:hover {
    background-color: #5a67d8;
}

.primary-btn {
    background-color: #48bb78;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    transition: background-color 0.3s ease;
}

.primary-btn:hover {
    background-color: #38a169;
}

hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 20px 0;
}

/* Update the simulate button to match the style */
.simulate-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #667eea;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.simulate-button:hover {
    background-color: #5a6ac2;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .vehicle-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .vehicle-header h4 {
        font-size: 1.1rem;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .checkbox-group {
        gap: 8px;
    }
    
    .input-field {
        padding: 10px;
        font-size: 14px;
    }
}

    /* New CSS for realistic model center panels */
    .realistic-center-panels {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .chart-panel-wrapper {
        display: block; /* Changed from display: none */
    }

    .input-group-container {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .input-group-container .control-group {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }

    .control-group {
        margin-bottom: 20px;
    }

    .control-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        color: #4a5568;
    }

    .control-group input {
        width: 100%;
        padding: 12px;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .control-group input::-webkit-outer-spin-button,
    .control-group input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
    
    .control-group input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .help-text {
        font-size: 12px;
        color: #718096;
        margin-top: 5px;
    }

    .environment-canvas {
        width: 100%;
        height: 400px;
        border-radius: 10px;
        background: #f8fafc;
    }
    
    .chart-container {
        position: relative;
        height: 300px;
        width: 100%;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        color: #2d3748;
        padding: 0;
    }

    h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        color: #4a5568;
        padding: 0;
    }
    
    .info-box {
        background: #f0f4ff;
        border-left: 4px solid #667eea;
        padding: 15px;
        margin-top: 20px;
        border-radius: 5px;
    }

    .info-box h4 {
        color: #667eea;
        margin-bottom: 10px;
    }

    .simulate-button {
        width: 100%;
        padding: 15px;
        border: none;
        border-radius: 8px;
        background-color: #667eea;
        color: white;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .simulate-button:hover {
        background-color: #5a6ac2;
    }

    .checkbox-group {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    .checkbox-group label {
        font-weight: 600;
        color: #4a5568;
    }
    .checkbox-group input[type="checkbox"] {
        margin-right: 5px;
    }
    
    .realistic-center-panels {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }


    .slider-nav-btn {
        background: #667eea;
        color: white;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s;
    }

    .slider-nav-btn:hover {
        background: #5a6ac2;
    }

    .slider-indicator {
        display: flex;
        justify-content: center;
        margin: 0 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #e2e8f0;
        margin: 0 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .dot.active {
        background: #667eea;
    }

  
    .v-collapsible-instruction-container {
        max-width: 1400px;
        margin: 0 auto 20px;
        background: white;
        border-radius: 15px; /* Changed to rounded corners all around */
       
        border: 2px solid black; /* Added black border */
        overflow: hidden; /* Keep child elements inside rounded corners */
    }

    .v-instruction-container {
        margin-top: 2px;
        transition: all 0.3s ease;
        /* Removed border as parent now has border */
    }

    .v-collapsible {
        font-size: 1.3rem;
        font-weight: 600;
        padding: 16px 24px;
        background: white;
        border-bottom: 1px solid black; /* Changed to only bottom border */
        cursor: pointer;
        position: relative;
        text-align: center;
    }

    .v-collapsible::after {
        content: "▼";
        position: absolute;
        right: 24px;
        border: 1px solid black;
        border-radius: 4px; /* Added rounded corners */
        font-size: 0.9em;
        transition: all 0.3s ease;
    }

    .v-collapsible.active {
        background: #e6ecff; /* Slightly darker when active */
    }

    .v-collapsible.active::after {
        content: "▲";
    }

    .v-collapsible:hover {
        background: #e6ecff;
    }

    .v-content {
        padding: 25px;
        background: white;
        color: #333;
        border-top: none; /* Removed duplicate borders */
        line-height: 1.6;
    }

    /* Style for instruction headers */
    .v-content h3 {
        color: #4a5568;
        margin-bottom: 20px;
        font-size: 1.2rem;
        font-weight: 600;
    }

    /* Style for instruction lists */
    /* .v-content ol {
        counter-reset: item;
        list-style-type: none;
        margin-left: 0;
        padding-left: 0;
    }

    .v-content ol li {
        /* Use Flexbox to align number and text side-by-side */
        /* display: flex; 
        align-items: flex-start; /* Aligns number with the top line of text */

        /* display: block;
        margin-bottom: 16px;
        padding-left: 45px;
        position: relative;
        font-weight: normal; /* Ensure text is not bold *

    .v-content ol li:before {
        content: counter(item)"";
        counter-increment: item;
        border-radius: 50%;
      
        width: 28px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        position: absolute;
        left: 0;
        top: 0;
        font-weight: 600;
        font-size: 0.9rem;
    } */

    /* Responsive styles for instructions */
    @media (max-width: 600px) {
        .v-collapsible {
            font-size: 1.1rem;
            padding: 14px 18px;
        }
        
        .v-content {
            padding: 18px 5%;
        }
        
        .v-content ol li {
            padding-left: 38px;
            margin-bottom: 14px;
            font-size: 0.95rem;
        }
        
        .v-content ol li:before {
            width: 24px;
            height: 24px;
            line-height: 24px;
            font-size: 0.85rem;
        }
        
        .v-collapsible-instruction-container {
            border-radius: 0 0 12px 12px;
        }
    }

    /* Responsive styles for instructions */
    @media (max-width: 600px) {
        .v-collapsible {
            font-size: 1rem;
            padding: 12px 15px;
        }
        
        .v-content {
            padding: 15px 5%;
        }
        
        .v-content {
            text-align: left;
            padding-left: 5% !important;
            padding-right: 5% !important;
        }
        
        .instruction-tab-title {
            font-size: 1rem;
        }
        
        .instruction-list li {
            font-size: 0.9rem;
            margin-bottom: 8px;
        }

        .tabs {
            border-radius: 10px 10px 0 0;
        }
        
        .v-collapsible-instruction-container {
            border-radius: 0 0 8px 8px;
            margin-bottom: 10px;
        }
    }

    @media (max-width: 400px) {
        .v-collapsible {
            font-size: 0.9rem;
            padding: 10px 12px;
        }
        
        .v-content {
            padding: 12px 2%;
        }
        
        .v-content {
            padding-left: 2% !important;
            padding-right: 2% !important;
        }
        
        .instruction-list li {
            font-size: 0.85rem;
            margin-bottom: 7px;
        }
    }

    @media (max-width: 1000px) {
        .lab-layout {
            grid-template-columns: 1fr;
        }
        .input-group-container {
            flex-direction: column;
        }
        .tabs {
            flex-direction: row;
        }
    }

    /* New media queries for small devices */
    @media (max-width: 600px) {
        .container {
            padding: 10px;
        }
        
        .header h1 {
            font-size: 1.8rem;
            margin-bottom: 5px;
        }
        
        .header p {
            font-size: 1rem;
        }
        
        .tab-button {
            padding: 10px 20px;
            font-size: 14px;
        }
        
        .controls-panel, .environment-panel, .chart-panel {
            padding: 15px;
            border-radius: 10px;
        }
        
        .environment-canvas {
            height: 300px;
        }
        
        .chart-container {
            height: 250px;
        }
        
        h2 {
            font-size: 1.3rem;
            margin-bottom: 15px;
        }
        
        h3 {
            font-size: 1.1rem;
            margin-bottom: 10px;
        }
        
        .simulate-button {
            padding: 12px;
            font-size: 16px;
        }
        
        .checkbox-group {
            gap: 10px;
            margin-bottom: 15px;
        }

        .instructions-slider-container {
            border-radius: 8px;
            margin-bottom: 10px;
        }
        
        .instructions-slider-header {
            padding: 10px 15px;
        }
        
        .instructions-slider-header h2 {
            font-size: 1.1rem;
        }
        
        .instructions-slides {
            padding: 15px;
        }
        
        .instruction-slide h3 {
            font-size: 1rem;
            margin-bottom: 10px;
        }
        
        .instruction-slide ol {
            padding-left: 20px;
        }
        
        .instruction-slide li {
            font-size: 14px;
            margin-bottom: 6px;
        }
    }

    @media (max-width: 400px) {
        .container {
            padding: 5px;
        }
        
        .header h1 {
            font-size: 1.5rem;
        }
        
        .controls-panel, .environment-panel, .chart-panel {
            padding: 10px;
            border-radius: 8px;
        }
        
        .control-group label {
            font-size: 14px;
        }
        
        .control-group input {
            padding: 8px;
            font-size: 14px;
        }
        
        .help-text {
            font-size: 11px;
        }
        
        .environment-canvas {
            height: 250px;
        }
        
        .chart-container {
            height: 200px;
        }
        
        .input-group-container .control-group {
            min-width: 100%;
        }

        .instructions-slider-header {
            padding: 8px 12px;
        }
        
        .instructions-slider-header h2 {
            font-size: 1rem;
        }
        
        .instructions-slides {
            padding: 12px;
        }
        
        .instruction-slide ol {
            padding-left: 16px;
        }
        
        .instruction-slide li {
            font-size: 13px;
            margin-bottom: 5px;
        }
        
        .slider-nav-btn {
            width: 25px;
            height: 25px;
        }
        
        .dot {
            width: 8px;
            height: 8px;
            margin: 0 4px;
        }
    }

    /* ... existing code ... */

    /* Find the .v-content ol, .v-content ol li styles and REPLACE them with this block: */

    .v-content ol {
        counter-reset: item;
        list-style-type: none;
        margin-left: 0;
        padding-left: 0;
    }

    .v-content ol li {
        /* Use Flexbox to align number and text side-by-side */
        display: flex; 
        align-items: flex-start; /* Aligns number with the top line of text */
        
        margin-bottom: 16px;
        line-height: 1.6;
        position: relative;
        font-weight: normal;
        transition: all 0.3s ease;
        padding: 8px; /* Inner spacing for the highlight effect */
        border-radius: 4px;
        border-left: 4px solid transparent; /* Placeholder for the active border */
    }

    .v-content ol li:before {
        content: counter(item);
        counter-increment: item;
        
        /* Fix the size of the number container */
        width: 28px;
        height: 28px;
        flex-shrink: 0; /* Prevents the number from being squished */
        
        /* Center the number inside its box */
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* Add space between number and text */
        margin-right: 15px; 
        
        /* Visual Styling */
        font-weight: 600;
        font-size: 0.95rem;
        color: #4a5568;
        background-color: #edf2f7; /* Light gray circle background for better visibility */
        border-radius: 50%; /* Makes it a circle */
    }

    /* Ensure the active state still looks good with Flexbox */
    .active-instruction {
        background-color: #e3f2fd; /* Light blue background */
        border-left: 4px solid #2196F3 !important; /* Blue accent border */
        color: #0d47a1; /* Darker blue text */
        font-weight: 600 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }