.order-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.order-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.order-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.order-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d1e7dd; color: #0f5132; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.order-items {
    padding: 1.5rem;
}

.item-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex-grow: 1;
    padding: 0 1rem;
}

.item-price {
    font-weight: 600;
    color: #2E7D32;
}

/* Timeline Styles */
.status-timeline {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border: 2px solid #dee2e6;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-step.active .timeline-icon {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.timeline-step.current .timeline-icon {
    animation: pulse 2s infinite;
}

.timeline-line {
    position: absolute;
    top: 20px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.timeline-step.active .timeline-line {
    background: #28a745;
}

.timeline-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 5px;
}

.timeline-step.active .timeline-label {
    color: #28a745;
    font-weight: 600;
}

.timeline-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 3px;
}

.cancelled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancelled-text {
    font-size: 1.5rem;
    color: #dc3545;
    font-weight: 600;
    transform: rotate(-15deg);
    border: 2px solid #dc3545;
    padding: 10px 20px;
    border-radius: 5px;
}

.timeline-step.cancelled .timeline-icon {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.order-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 0 10px 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.shipping-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
}

.shipping-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2E7D32;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

@media (max-width: 768px) {
    .timeline-step {
        font-size: 0.75rem;
    }

    .timeline-icon {
        width: 32px;
        height: 32px;
    }

    .item-card {
        flex-direction: column;
        text-align: center;
    }

    .item-image {
        margin-bottom: 1rem;
    }

    .item-details {
        padding: 0;
    }
} 