

/* Order Header Styles */
.order-header {
    margin-bottom: 2rem;
}

.header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-info {
    flex: 1;
    z-index: 1;
}

.header-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-info p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.header-status {
    z-index: 1;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.status-badge.shipped {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}
.status-badge.delivered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}


.status-badge.pending {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

/* Content Grid */
.order-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.section-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title svg {
    color: #667eea;
}

.section-title h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.items-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Order Items */
.items-list {
    padding: 0;
}

.item-card {
    padding: 1.5rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.item-card:hover {
    background-color: #f8fafc;
}

.item-card:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.item-details {
    display: flex;
    gap: 1rem;
}

.quantity, .unit-price {
    font-size: 0.9rem;
    color: #64748b;
}

.item-total {
    text-align: right;
}

.total-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Address Section */
.address-content {
    padding: 1.5rem;
}

.address-text {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #1e293b;
    line-height: 1.6;
}

/* Order Total */
.total-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
}

.total-breakdown {
    padding: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.total-row:last-child {
    border-bottom: none;
}

.total-row.final-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    padding-top: 1rem;
    border-top: 2px solid #667eea;
    margin-top: 0.5rem;
}

/* Order Actions */
.order-actions {
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: 2px solid #667eea;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .order-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .header-info h1 {
        font-size: 1.5rem;
    }
    
    .item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .item-total {
        text-align: left;
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .item-details {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .total-row {
        font-size: 0.9rem;
    }
    
    .back-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
