/* Ride Ended Modal */
.ride-ended-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    z-index: 10000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.ride-ended-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: rideEndedSlideIn 0.4s ease-out;
}

@keyframes rideEndedSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ride-ended-modal .modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 30px 20px 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.ride-ended-icon {
    font-size: 48px;
    margin-bottom: 10px;
    animation: carBounce 1s ease-in-out infinite alternate;
}

@keyframes carBounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-5px);
    }
}

.ride-ended-modal h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.ride-ended-modal .modal-body {
    padding: 30px 20px;
    text-align: center;
}

.ride-ended-message {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 25px;
}

.ride-ended-message #driverName {
    font-weight: 600;
    color: #333;
}

.womp-womp {
    font-size: 24px;
    font-weight: 700;
    color: #e74c3c;
    display: block;
    margin-bottom: 10px;
}

.ride-ended-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.close-btn {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

@media (max-width: 480px) {
    .ride-ended-modal {
        padding-top: 20px;
    }
    
    .ride-ended-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .ride-ended-modal .modal-header {
        padding: 25px 15px 15px;
    }
    
    .ride-ended-icon {
        font-size: 40px;
    }
    
    .ride-ended-modal h3 {
        font-size: 20px;
    }
    
    .ride-ended-modal .modal-body {
        padding: 25px 15px;
    }
    
    .ride-ended-message {
        font-size: 16px;
    }
    
    .womp-womp {
        font-size: 20px;
    }
}

