/* Ride Code Modal */
.ride-code-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: 2000;
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.ride-code-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ride-code-modal .modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.ride-code-modal .modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ride-code-modal .modal-header h3 i {
    color: #667eea;
}

.ride-code-modal .modal-subtitle {
    color: #666;
    font-size: 14px;
}

.ride-code-modal .modal-body {
    margin-bottom: 20px;
}

.ride-code-input-container {
    margin-bottom: 20px;
}

.ride-code-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#rideCodeInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

#rideCodeInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.validate-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    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;
    min-width: 120px;
    justify-content: center;
}

.validate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.validate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ride-code-help {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    text-align: center;
    justify-content: center;
}

.ride-code-help i {
    color: #667eea;
}

.ride-code-modal .modal-footer {
    text-align: center;
}

.ride-code-modal .error-message {
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

@media (max-width: 480px) {
    .ride-code-modal {
        padding-top: 20px;
    }
}

