:root {
    --primary: #0070f3;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #111;
    --background: #ffffff;
    --foreground: #111111;
    --muted: #f5f5f5;
    --muted-foreground: #666666;
    --border: #e5e5e5;
    --radius: 0.5rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--background);
    color: var(--foreground);
}

/* Order card */
.order-card {
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

/* =======================
   PROGRESS TRACKER
   ======================= */

.progress-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

/* Đường kẻ CHUNG – chỉ chạy qua icon */
.progress-tracker::before {
    content: "";
    position: absolute;
    top: 20px;              /* tâm icon */
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--muted);
    z-index: 0;
}

.progress-step {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;     /* ICON TRÊN – TEXT DƯỚI */
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
}

/* Icon (chấm tròn) */
.progress-step i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--muted);
    color: var(--muted-foreground);
    display: inline-block;
}

/* Text */
.progress-step span {
    margin-top: 8px;
    white-space: nowrap;
}

/* Completed */
.progress-step.completed i {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Active */
.progress-step.active i {
    background: var(--primary);
    color: #000;
}

/* =======================
   ORDER ITEMS
   ======================= */

.order-items img {
    max-width: 100px;
    height: auto;
}

/* =======================
   BUTTONS & PAGINATION
   ======================= */

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link {
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =======================
   MOBILE
   ======================= */

@media (max-width: 768px) {
    .progress-tracker {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Tắt line ngang trên mobile */
    .progress-tracker::before {
        display: none;
    }

    .progress-step {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .progress-step span {
        margin-top: 0;
    }
}
