:root {
    --primary-color: #000;
    --secondary-color: #f50057;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.user-menu {
    display: flex;
    align-items: center;
}

.user-menu a {
    margin-left: 20px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.user-menu a:hover {
    color: var(--primary-color);
}

.user-menu .icon {
    margin-right: 5px;
}

.page-title {
    margin: 30px 0 20px;
    font-weight: 500;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-gray);
}

.filter-select, .filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #303f9f;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--medium-gray);
    color: var(--dark-gray);
}

.btn-outline:hover {
    background-color: var(--light-gray);
}

.orders-container {
    margin-bottom: 30px;
}

.order-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    padding: 15px 20px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.order-date {
    font-size: 14px;
    color: var(--dark-gray);
}

.order-number {
    font-weight: 500;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-delivered {
    background-color: #e8f5e9;
    color: var(--success-color);
}

.status-processing {
    background-color: #fff8e1;
    color: var(--warning-color);
}

.status-cancelled {
    background-color: #ffebee;
    color: var(--danger-color);
}

.order-body {
    padding: 20px;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.product-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.product-variant {
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.product-price {
    font-weight: 500;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.order-total {
    font-size: 16px;
    font-weight: 500;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.order-footer {
    padding: 15px 20px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 13px;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--dark-gray);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 18px;
    font-weight: 500;
}

.close {
    color: var(--dark-gray);
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.tracking-timeline {
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 30px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 30px;
    height: calc(100% - 30px);
    width: 2px;
    background-color: var(--medium-gray);
}

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

.timeline-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 1;
}

.timeline-content {
    flex: 1;
}

.timeline-date {
    font-size: 12px;
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.timeline-description {
    font-size: 14px;
    color: var(--dark-gray);
}

.active .timeline-icon {
    background-color: var(--success-color);
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: var(--light-gray);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 48px;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.empty-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-description {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .user-menu a {
        margin-left: 0;
    }
    
    .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .order-actions {
        width: 100%;
        justify-content: space-between;
    }
}





