/* Track Order Page Styles */
.track-order-page {
    padding: 40px 0 80px;
    background-color: #f7f9fc;
    min-height: 80vh;
}

.track-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Order Summary Header */
.track-header {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

.track-id {
    font-size: 16px;
    color: #666;
    font-family: monospace;
}

.track-eta {
    text-align: right;
}

.eta-label {
    font-size: 13px;
    color: #888;
    display: block;
}

.eta-value {
    font-size: 18px;
    font-weight: 700;
    color: #00b4d8;
}

/* Tracking Timeline */
.timeline-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #eee;
}

.timeline-step {
    position: relative;
    padding-bottom: 40px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    border: 3px solid white;
    box-shadow: 0 0 0 1px #ddd;
    z-index: 1;
}

.timeline-step.completed .step-marker {
    background: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
}

.timeline-step.active .step-marker {
    background: #25d366;
    /* WhatsApp Green-ish for current */
    box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.2);
}

/* Connector Line Color */
.timeline-step.completed::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 16px;
    height: 100%;
    width: 2px;
    background: #00b4d8;
    z-index: 0;
}

.timeline-step:last-child::before {
    display: none;
}


.step-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    font-size: 13px;
    color: #888;
}

.step-date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* Cancelled State */
.timeline-step.cancelled .step-marker {
    background: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Order Items Preview */
.track-items {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.track-items h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.mini-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mini-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
}

.mini-item-info span {
    display: block;
    font-size: 14px;
    color: #333;
}

.mini-item-info small {
    color: #888;
}

@media (max-width: 600px) {
    .track-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .track-eta {
        text-align: left;
    }
}