.orders-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.order-card {
    display: block;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}
 
.order-id {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.order-date {
    color: #666;
    font-size: 14px;
    margin: 0;
}

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

.total-price {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
}

.price-pending {
    font-size: 16px;
    color: #ffc107;
    font-weight: 600;
}

/* Progress Bar */
.order-progress {
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-bar[data-status="pending"] { width: 20%; }
.progress-bar[data-status="confirmed"] { width: 40%; }
.progress-bar[data-status="in_progress"] { width: 60%; }
.progress-bar[data-status="ready"] { width: 80%; }
.progress-bar[data-status="delivered"] { width: 100%; }
.progress-bar[data-status="cancelled"] { 
    width: 0%; 
    background: #dc3545;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    transition: all 0.3s;
}

.step.active .step-icon {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-icon {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.order-cancelled {
    background: #ffe6e6;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #dc3545;
    font-weight: 600;
    margin-top: 15px;
}

.order-cancelled i {
    margin-right: 8px;
}

.view-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    color: #007bff;
    font-weight: 600;
}

.view-details i {
    transition: transform 0.2s;
}

.order-card:hover .view-details i {
    transform: translateX(5px);
}

/* Empty State */
.empty-orders {
    text-align: center;
    padding: 60px 20px;
}

.empty-orders i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-orders h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-orders p {
    color: #666;
    margin-bottom: 25px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-total {
        margin-top: 15px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex-basis: 33.333%;
        margin-bottom: 15px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}




/* ORDER DETAIL */

.order-detail-header {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: color 0.2s;
}

.back-button:hover {
    color: #0056b3;
}

.back-button i {
    margin-right: 8px;
}

.order-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.detail-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

.info-value.total {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.price-pending {
    color: #ffc107;
    font-weight: 600;
}

.order-progress {
    margin-top: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-bar[data-status="pending"] { width: 20%; }
.progress-bar[data-status="confirmed"] { width: 40%; }
.progress-bar[data-status="in_progress"] { width: 60%; }
.progress-bar[data-status="ready"] { width: 80%; }
.progress-bar[data-status="delivered"] { width: 100%; }
.progress-bar[data-status="cancelled"] { 
    width: 0%; 
    background: #dc3545;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    text-align: center;
    flex: 1;
}

.step-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    transition: all 0.3s;
}

.step.active .step-icon {
    background: #007bff;
    color: white;
    transform: scale(1.1);
}

.step.completed .step-icon {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.step.active .step-label {
    color: #007bff;
    font-weight: 600;
}

.order-cancelled {
    background: #ffe6e6;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #dc3545;
    font-weight: 600;
    margin-top: 15px;
}

.items-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.product-name {
    font-weight: 500;
    color: #333;
}

.item-total {
    color: #28a745;
}

.order-actions {
    display: flex;
    gap: 15px;
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.action-form {
    flex: 1;
}

.btn-confirm, .btn-cancel {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-confirm {
    background: #28a745;
    color: white;
}

.btn-confirm:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .order-actions {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex-basis: 33.333%;
        margin-bottom: 15px;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}

.admin-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    color: #555;
    line-height: 1.6;
}