.distance-bar-container {
            background-color: #e9ecef;
            border-radius: 12px;
            margin: 15px 0;
            overflow: hidden;
        }
        .distance-bar {
            display: flex;
            height: 40px;
            width: 100%;
            border-radius: 12px;
            overflow: hidden;
        }
        .reaction-bar {
            background-color: #ffb74d;
            transition: width 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #3e2723;
            font-weight: bold;
            font-size: 0.8rem;
        }
        .braking-bar {
            background-color: #ef5350;
            transition: width 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 0.8rem;
        }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
        }
        .stopping-canvas {
            width: 100%;
            height: auto;
            background-color: #fef9e8;
            border: 1px solid #ddd;
            border-radius: 12px;
            margin-top: 0.5rem;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin: 0.5rem 0;
            font-size: 0.8rem;
        }
        .legend-color {
            width: 16px;
            height: 16px;
            display: inline-block;
            border-radius: 4px;
        }
        .legend-color.orange { background-color: #ffb74d; }
        .legend-color.red { background-color: #ef5350; }
        .legend-color.blue { background-color: #2c7da0; }
        .unit-note {
            font-size: 0.85rem;
            color: #6c757d;
        }
        .slider-custom {
            width: 100%;
        }
        .placeholder-text {
            color: #6c757d;
            font-style: italic;
        }
        .btn-calculate {
            background-color: #2c7da0;
            border-color: #2c7da0;
        }
        .btn-calculate:hover {
            background-color: #1f5e7a;
            border-color: #1f5e7a;
        }
        .btn-reset {
            background-color: #6c757d;
            border-color: #6c757d;
        }
        .btn-reset:hover {
            background-color: #565e64;
            border-color: #565e64;
        }