.card {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}
.card-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
}
.card-body {
    padding: 15px;
}
.category-header {
    background-color: #42474c;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 4px 4px 0 0;
}
.category-header h2 {
    margin: 0;
    font-size: 1.25rem;
}
.category-header:hover {
    background-color: #343a40;
}
.category-content {
    padding: 15px;
}
.chart-container {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.chart-container:last-child {
    border-bottom: none;
}
.chart-container canvas {
    margin: 10px 0;
}
.chart-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #343a40;
}
.chart-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #42474c;
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    z-index: 1000;
    font-weight: 500;
}
.back-to-top:hover {
    background-color: #343a40;
}
#quickjump {
    margin-bottom: 25px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}
#quickjump h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}
#quickjump ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}
#quickjump a {
    text-decoration: none;
    color: #fff;
    background-color: #42474c;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    display: inline-block;
}
#quickjump a:hover {
    background-color: #343a40;
}
.badge-best {
    display: inline-block;
    padding: 3px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #28a745;
    color: white;
    border-radius: 3px;
    margin-left: 5px;
}
.test-explanation {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    font-size: 0.9rem;
}
.legend-color {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 2px;
}
.tyre-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 0.8rem;
    background-color: #f8f9fa;
}
.reference-tyre {
    background-color: #ffeeba;
    border-left: 4px solid #ffc107;
    font-style: italic;
}
.data-direction-indicator {
    font-weight: bold;
    color: #6c757d;
}
.read-more-toggle {
    color: #007bff;
    cursor: pointer;
    font-size: 0.85rem;
}
.data-insights {
    background-color: #e9f7fe;
    border-left: 4px solid #17a2b8;
    padding: 10px 15px;
    margin: 10px 0 15px;
    font-size: 0.9rem;
}
.reference-legend {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 0.9rem;
}

/* Position medal indicators */
.position-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
}

.position-medal--gold {
    background-color: #ffd700;
    color: #5a4600;
}

.position-medal--silver {
    background-color: #e0e0e0;
    color: #424242;
}

.position-medal--bronze {
    background-color: #cd7f32;
    color: #fff;
}

/* Residual Speed Widget - Modern sleek styling */
.residual-speed-widget h4 {
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.75rem;
}

/* Safety Impact Box Styling */
.residual-speed-widget .rounded {
    transition: all 0.15s ease-in-out;
}

.residual-speed-widget .rounded:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}