.pace-comparison-container {
    padding: 8px;
    width: 500px;
}

.pace-comparison-header {
    position: relative;
    padding: 8px 16px;
    margin-bottom: 2px;
    background: #15151e;
    border-left: 4px solid #e10600;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--bs-white)fff;
}

.pace-comparison-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 0, 0.1));
}

.pace-comparison-main-row {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px 4px 0 0;
    background: #15151e;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pace-comparison-sectors-row {
    display: flex;
    padding: 10px;
    border-radius: 0 0 4px 4px;
    background: #15151e;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 1px;
    margin-bottom: 2px;
}

.pace-comparison-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pace-comparison-sectors-half {
    flex: 1;
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
}

.pace-comparison-sector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.pace-comparison-sector-label {
    font-size: 12px;
    color: var(--bs-light);
    margin-bottom: 4px;
}

.pace-comparison-player-sector-label {
    font-size: 12px;
    color: var(--bs-light);
}

.pace-comparison-driver {
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--bs-white);
}

.pace-comparison-prev {
    margin-right: 8px;
}

.pace-comparison-next {
    margin-left: 8px;
}

.pace-comparison-delta {
    font-weight: bold;
    font-size: 16px;
    padding: 0 12px;
}

.pace-comparison-divider {
    width: 1px;
    background: #444;
    height: 40px;
    margin: 0 10px;
}

.pace-comparison-battery-row {
    display: flex;
    align-items: start;
    padding: 5px 15px;
    background: #15151e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pace-comparison-half {
    flex: 1;
    padding: 0 10px;
}

.pace-comparison-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.battery-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.battery-body {
    flex: 1;
    height: 24px;
    border: 2px solid #333;
    border-radius: 3px;
    position: relative;
    background: #000000;
    overflow: hidden;
}

.battery-cap {
    width: 3px;
    height: 10px;
    background: #e4e4e4;
    margin-left: 2px;
    border-radius: 0 2px 2px 0;
}

.battery-level {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.battery-mode {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    z-index: 1;
    text-shadow: 0px 0px 2px #000;
}

.ers-bars-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.ers-label {
    font-size: 11px;
    font-weight: bold;
    color: var(--bs-light);
    min-width: 12px;
}

/* Deployment mode colors */
.battery-level.mode-none {
    background: #808080;
    color: #ffffff;
}
.battery-level.mode-medium {
    background: #FCEC17;
    color: #ffffff;
}
.battery-level.mode-hotlap {
    background: #00FF00;
    color: #000000;
}
.battery-level.mode-overtake {
    background: #FF0000;
    color: #ffffff;
}
