:root {
    /* Main colors */
    --primary: #7c4dff;
    --primary-light: #e8e2ff;
    --primary-dark: #5e35b1;
    --secondary: #f5f5f5;
    --text-dark: #333333;
    --text-medium: #666666;
    --text-light: #888888;
    --white: #ffffff;

    /* Status colors */
    --pending: #ffa726;
    --processing: #42a5f5;
    --shipped: #66bb6a;
    --delivered: #26a69a;
    --cancelled: #ef5350;

    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* General styling */
body {
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-light) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 77, 255, 0.25);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 77, 255, 0.25);
}

.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

/* Header styling */
.orders-header {
    position: relative;
    padding: 2rem 0;
}

.orders-header h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.orders-header p {
    font-size: 1.15rem;
}

/* Empty state styling */
.empty-state {
    padding: 3rem 0;
}

.empty-icon-wrapper {
    width: 100px;
    height: 100px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.empty-icon-wrapper i {
    font-size: 3rem;
    color: var(--primary);
}

/* Tools section styling */
.order-tools {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

#orderSearch {
    padding-left: 40px;
    height: 50px;
    border-radius: 25px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.btn-filter {
    border: none;
    background-color: var(--secondary);
    color: var(--text-medium);
    border-radius: 20px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

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

/* Order cards styling */
.order-card {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-status-indicator {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
}

.status-pending {
    background-color: var(--pending);
}

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

.status-shipped {
    background-color: var(--shipped);
}

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

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

.order-card-inner {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
}

/* Order header */
.order-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.order-id {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Order details */
.order-details {
    margin-bottom: 1.5rem;
}

.detail-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Progress track */
.order-progress {
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.progress-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.progress-line {
    position: absolute;
    top: 12px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-line-inner {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 70px;
}

.stage-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #e0e0e0;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-stage.completed .stage-dot {
    background-color: var(--primary);
    border-color: var(--primary);
}

.stage-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    transition: all 0.3s ease;
}

.progress-stage.completed .stage-label {
    color: var(--primary);
    font-weight: 600;
}

/* Cancelled order */
.order-cancelled {
    background-color: #ffebee;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: var(--cancelled);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

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

/* Order actions */
.order-actions {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Pagination styling */
.orders-pagination {
    margin-top: 3rem;
}

.pagination {
    gap: 5px;
}

.pagination .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: all 0.2s ease;
}

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

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

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f5f5f5;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .order-card-inner {
        padding: 1rem;
    }

    .filter-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .progress-track {
        display: none;
    }

    .order-details .col-6:nth-child(odd) {
        padding-right: 8px;
    }

    .order-details .col-6:nth-child(even) {
        padding-left: 8px;
    }

    .detail-group {
        margin-bottom: 1rem;
    }

    .detail-icon {
        width: 32px;
        height: 32px;
    }

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

    .order-actions .btn {
        width: 100%;
    }
}