/* Styles pour les courses */
#ridesList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.no-rides-message {
    color: #666;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.ride-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-left: 4px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ride-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Couleurs selon le statut */
.ride-card.status-completed {
    border-left-color: #28a745;
}

.ride-card.status-cancelled {
    border-left-color: #dc3545;
}

.ride-card.status-booked {
    border-left-color: #ffc107;
}

.ride-card.status-searching {
    border-left-color: #17a2b8;
}

.ride-card.status-arrived {
    border-left-color: #ffc107;
}

.ride-card.status-accepted {
    border-left-color: #ffc107;
}

.ride-card.status-onboard {
    border-left-color: #007bff;
}

.ride-card.status-processing-payment {
    border-left-color: #ffc107;
}

.ride-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #666;
}

.ride-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ride-client {
    flex: 1;
}

.ride-locations {
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
}

.pickup-location, .dropoff-location {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.pickup-location i {
    color: #007bff;
}

.dropoff-location i {
    color: #28a745;
}

.ride-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 4px;
    margin-left: 10px;
    width: 100px;
    text-align: center;
}

.ride-status.success {
    color: #28a745;
}

.ride-status.warning {
    color: #ffc107;
}

.ride-status.primary {
    color: #007bff;
}

.ride-status.info {
    color: #17a2b8;
}

.ride-status.default {
    color: #6c757d;
}

.status-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.ride-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.ride-badges {
    display: flex;
    gap: 8px;
}

.estimated-time, .payment-method {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.ride-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.ride-actions .btn {
    font-size: 0.85rem;
}

/* Compteurs dans les onglets */
.ride-count {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
    padding: 0 6px;
}

.nav-tabs .btn.active .ride-count {
    background-color: rgba(255, 255, 255, 0.2);
} 