/* =========================================
   Albawaba Order Tracking System
   Customer + Employee Interface
========================================= */

.abw-customer-tracking,
.abw-employee-scanner {
    max-width: 900px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
    color: #1f2937;
}


/* =========================================
   HEADINGS
========================================= */

.abw-customer-tracking h2,
.abw-employee-scanner h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.abw-customer-tracking h3,
.abw-employee-scanner h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}


/* =========================================
   TRACKING SEARCH FORM
========================================= */

.abw-customer-tracking form,
.abw-employee-scanner form {
    margin: 20px 0;
}

.abw-customer-tracking input[type="text"],
.abw-employee-scanner input[type="text"] {
    width: 100%;
    max-width: 500px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

.abw-customer-tracking input[type="text"]:focus,
.abw-employee-scanner input[type="text"]:focus {
    outline: none;
    border-color: #111827;
}


/* =========================================
   BUTTONS
========================================= */

.abw-customer-tracking button,
.abw-employee-scanner button {
    min-height: 46px;
    padding: 10px 22px;
    margin-top: 10px;
    border: 0;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.abw-customer-tracking button:hover,
.abw-employee-scanner button:hover {
    opacity: 0.9;
}


/* =========================================
   ORDER INFORMATION CARDS
========================================= */

.abw-order-info,
.abw-employee-order,
.abw-next-action,
.abw-employee-history {
    margin-top: 20px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.abw-order-info p,
.abw-employee-order p {
    margin: 8px 0;
    line-height: 1.6;
}


/* =========================================
   CUSTOMER JOURNEY
========================================= */

.abw-order-timeline {
    margin-top: 25px;
}

.abw-order-timeline h3 {
    margin-bottom: 20px;
}


/* Timeline item */

.abw-timeline-item {
    position: relative;
    padding: 0 0 24px 45px;
    min-height: 45px;
}


/* Vertical line */

.abw-timeline-item::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: #d1d5db;
}

.abw-timeline-item:last-child::before {
    display: none;
}


/* Timeline circle */

.abw-timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}


/* =========================================
   COMPLETED = GREEN
========================================= */

.abw-timeline-item.completed .abw-timeline-icon {
    background: #16a34a;
    color: #ffffff;
}

.abw-timeline-item.completed .abw-timeline-title {
    color: #15803d;
}

.abw-timeline-item.completed::before {
    background: #16a34a;
}


/* =========================================
   CURRENT = ORANGE
========================================= */

.abw-timeline-item.current .abw-timeline-icon {
    background: #f59e0b;
    color: #ffffff;
}

.abw-timeline-item.current .abw-timeline-title {
    color: #d97706;
    font-weight: 700;
}


/* =========================================
   UPCOMING = GRAY
========================================= */

.abw-timeline-item.upcoming .abw-timeline-icon {
    background: #e5e7eb;
    color: #6b7280;
}

.abw-timeline-item.upcoming .abw-timeline-title {
    color: #6b7280;
}


/* Timeline title */

.abw-timeline-title {
    font-size: 16px;
    line-height: 30px;
}


/* =========================================
   CURRENT STATUS BOX
========================================= */

.abw-current-status {
    margin-top: 25px;
    padding: 18px 20px;
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    border-radius: 5px;
}

.abw-current-status strong {
    color: #c2410c;
}


/* =========================================
   ADDITIONAL CHARGE
========================================= */

.abw-additional-charge {
    margin-top: 25px;
    padding: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
}

.abw-additional-charge h3 {
    color: #c2410c;
}

.abw-additional-charge p {
    margin: 7px 0;
}


/* =========================================
   SUCCESS MESSAGE
========================================= */

.abw-success {
    padding: 15px 18px;
    margin: 15px 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    color: #166534;
}


/* =========================================
   ERROR MESSAGE
========================================= */

.abw-error,
.abw-employee-error {
    padding: 15px 18px;
    margin: 15px 0;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    color: #991b1b;
}


/* =========================================
   EMPLOYEE MESSAGE
========================================= */

.abw-employee-message {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}


/* =========================================
   LOCKED ACTION
========================================= */

.abw-action-locked {
    margin-top: 15px;
    padding: 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 7px;
    color: #991b1b;
}

.abw-action-locked strong {
    display: block;
    margin-bottom: 6px;
}


/* =========================================
   EMPLOYEE HISTORY
========================================= */

.abw-history-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.abw-history-item:last-child {
    border-bottom: 0;
}

.abw-history-item small {
    color: #6b7280;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .abw-customer-tracking,
    .abw-employee-scanner {
        margin: 20px 12px;
    }

    .abw-customer-tracking h2,
    .abw-employee-scanner h2 {
        font-size: 23px;
    }

    .abw-order-info,
    .abw-employee-order,
    .abw-next-action,
    .abw-employee-history {
        padding: 17px;
    }

    .abw-customer-tracking input[type="text"],
    .abw-employee-scanner input[type="text"] {
        max-width: 100%;
    }

    .abw-customer-tracking button,
    .abw-employee-scanner button {
        width: 100%;
    }

    .abw-timeline-item {
        padding-left: 42px;
    }
}