/* Active Shipments Section - Replaces Map */
.velocity-active-shipments {
    background: var(--velocity-card-bg);
    border: 1px solid var(--velocity-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.velocity-shipment-grid {
    display: grid;
    gap: 1rem;
}

.velocity-shipment-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.velocity-shipment-item:hover {
    transform: translateX(4px);
    border-color: var(--velocity-orange);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
}

.velocity-shipment-item.in-transit {
    border-left: 4px solid var(--velocity-orange);
}

.velocity-shipment-item.delivered {
    border-left: 4px solid var(--velocity-success);
}

/* Shipment Header */
.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.shipment-id {
    font-weight: 700;
    color: var(--velocity-text);
    font-size: 0.95rem;
}

.shipment-status-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.shipment-status-badge.in-transit {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(251, 191, 36, 0.2));
    color: var(--velocity-orange);
    border: 1px solid var(--velocity-orange);
}

.shipment-status-badge.delivered {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
    color: var(--velocity-success);
    border: 1px solid var(--velocity-success);
}

/* Route Visualization */
.shipment-route {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.route-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
}

.point-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.route-point.origin .point-icon {
    background: linear-gradient(135deg, var(--velocity-orange), var(--velocity-amber));
    color: white;
}

.route-point.destination .point-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.velocity-shipment-item.delivered .point-icon {
    background: linear-gradient(135deg, var(--velocity-success), #34d399);
    color: white;
}

.point-info {
    flex: 1;
}

.point-label {
    font-size: 0.6875rem;
    color: var(--velocity-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.point-name {
    font-size: 0.875rem;
    color: var(--velocity-text);
    font-weight: 500;
}

/* Progress Line */
.route-progress {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-line {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--velocity-orange), var(--velocity-amber));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.complete {
    background: linear-gradient(90deg, var(--velocity-success), #34d399);
}

.progress-truck {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.125rem;
    animation: bobbing 2s ease-in-out infinite;
}

.progress-truck.complete {
    animation: none;
}

@keyframes bobbing {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, -60%);
    }
}

.route-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--velocity-text-muted);
}

/* Shipment Footer */
.shipment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8125rem;
}

.driver-name {
    color: var(--velocity-text);
    font-weight: 500;
}

.eta {
    color: var(--velocity-text-muted);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .shipment-route {
        flex-direction: column;
        align-items: stretch;
    }

    .route-point {
        min-width: auto;
    }

    .progress-line {
        transform: rotate(90deg);
        width: 100px;
        margin: 1rem auto;
    }
}