/* Main Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.footer {
    border-top: 1px solid #e9ecef;
}

/* Results Table */
.table thead th {
    position: sticky;
    top: 0;
    background-color: #212529;
    z-index: 1;
}

.table-responsive {
    max-height: 70vh;
    overflow-y: auto;
}

/* Selected Racers Panel */
.selected-racers-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.selected-racer-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e9ecef;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 5px 5px 0;
    font-size: 0.9rem;
}

.remove-racer-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 5px;
    padding: 0 5px;
    cursor: pointer;
}

/* Compare Page */
.selected-racer-item {
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.selected-racer-item:hover {
    background-color: #e9ecef;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .selected-racers-panel {
        padding: 5px 0;
    }
    
    .selected-racer-badge {
        font-size: 0.8rem;
    }
}
