/* Order Details Page Styles */

.order-details-section {
    background: #f8f9fa;
    min-height: 100vh;
}

.page-header {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h2 {
    color: #2c3e50;
    font-weight: 600;
}

/* Product Thumbnail */
.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.card-header h5 {
    font-weight: 600;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table tfoot td {
    padding: 1rem;
    font-size: 1rem;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Payment & Shipping Info */
.payment-info-item,
.shipping-info .info-item {
    transition: all 0.2s;
}

.payment-info-item:hover {
    transform: translateX(5px);
}

.payment-info-item small,
.shipping-info small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.payment-info-item strong,
.shipping-info strong {
    font-size: 1rem;
    color: #2c3e50;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
}

.timeline-marker .badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.timeline-content {
    background: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    transition: all 0.2s;
}

.timeline-content:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.timeline-content h6 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.alert pre {
    background: white;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Comment Items */
.comment-item {
    border-left: 3px solid #ffc107;
    transition: all 0.2s;
}

.comment-item:hover {
    transform: translateX(5px);
    border-left-color: #ff9800;
}

.comment-item h6 {
    color: #2c3e50;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-thumb {
        width: 50px;
        height: 50px;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table thead th,
    .table tbody td,
    .table tfoot td {
        padding: 0.75rem 0.5rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-marker {
        left: -30px;
    }
    
    .timeline-marker .badge {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .page-header .btn,
    .card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .order-details-section {
        background: white;
    }
}
