/*=========================================================
  BODY
=========================================================*/

/*body {
    background: #f5f7fb;
    font-family: 'Segoe UI', Arial, sans-serif;
}
*/

.tracking-search {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 2fr 180px;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    margin-bottom: 25px;
}


.track-btn {
    height: 45px;
    border-radius: 10px;
    font-weight: 600;
}


.form-label {
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}



@media(max-width:768px) {

    .tracking-search {
        grid-template-columns: 1fr;
    }
}

/*=========================================================
 HEADER
=========================================================*/

.tracking-header {
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    margin-bottom: 20px;
}


    .tracking-header h2 {
        margin: 0;
        color: #1d3557;
        font-weight: 700;
    }


    .tracking-header p {
        color: #777;
        margin: 5px 0 0;
    }





/*=========================================================
 SEARCH
=========================================================*/

.tracking-search {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 2fr 180px;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    margin-bottom: 25px;
}


.track-btn {
    height: 45px;
    border-radius: 10px;
    font-weight: 600;
}


.form-label {
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}


.input-group .form-control {
    height: 45px;
    border-radius: 10px 0 0 10px;
}


.input-group .btn {
    height: 45px;
    width: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 10px 10px 0;
}

@media(max-width:768px) {

    .tracking-search {
        grid-template-columns: 1fr;
    }
}




/*=========================================================
 SUMMARY
=========================================================*/

.tracking-summary {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,.06);
    margin-bottom: 20px;
}



.vendor-section {
    display: flex;
    align-items: center;
    gap: 25px;
}



.vendor-logo-box {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 1px solid #eee;
    display: flex;
    justify-content: center;
    align-items: center;
}



    .vendor-logo-box img {
        max-width: 80px;
        max-height: 70px;
    }



.summary-value {
    font-size: 18px;
    font-weight: 700;
}



.copy-btn {
    border: 0;
    background: #edf5ff;
    color: #0d6efd;
    border-radius: 8px;
    padding: 5px 10px;
}





/*=========================================================
 STATUS
=========================================================*/
.shipment-status {
    min-width: 170px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-align: center;
}


/* Default */
.status-default {
    background: #eee;
    color: #555;
}


/* Booked */
.status-booked {
    background: #e2e3e5;
    color: #555;
}


/* Picked */
.status-picked {
    background: #fff3cd;
    color: #856404;
}


/* In Transit */
.status-transit {
    background: #cfe2ff;
    color: #084298;
}


/* Out For Delivery */
.status-ofd {
    background: #cff4fc;
    color: #055160;
}


/* Delivered */
.status-delivered {
    background: #d1e7dd;
    color: #0f5132;
}


/* RTO In Transit */
.status-rto {
    background: #f8d7da;
    color: #842029;
}


/* RTO Delivered */
.status-rto-delivered {
    background: #e2d9f3;
    color: #59359a;
}


/* RTO Undeliverable */
.status-rto-undeliverable {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}


/* Undeliverable */
.status-undeliverable {
    background: #fff3cd;
    color: #856404;
}


/* Attempted */
.status-attempted {
    background: #ffe5d0;
    color: #984c0c;
}


/* Lost */
.status-lost {
    background: #343a40;
    color: #fff;
}


/* Cancelled */
.status-cancelled {
    background: #f8d7da;
    color: #842029;
}


/* Rejected */
.status-rejected {
    background: #e2e3e5;
    color: #41464b;
}

/*=========================================================
 CARD
=========================================================*/

.tracking-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
    margin-bottom: 20px;
}



.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1d3557;
}





/*=========================================================
 SHIPMENT JOURNEY PROGRESS
=========================================================*/


#trackingProgress {
    display: flex;
    justify-content: space-between;
    position: relative;
}



.progress-step {
    width: 20%;
    text-align: center;
    position: relative;
    color: #999;
}




    /* connector line */

    .progress-step:not(:last-child):after {
        content: "";
        position: absolute;
        top: 25px;
        left: 60%;
        width: 80%;
        height: 4px;
        background: #ddd;
        z-index: 0;
    }




    /* highlighted connector */

    .progress-step.active:not(:last-child):after {
        background: #198754;
    }





.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: relative;
    z-index: 2;
    color: #666;
    transition: .3s;
}




/* active circle */

.progress-step.active .step-icon {
    background: #198754;
    color: #fff;
    transform: scale(1.05);
}




/* active label */

.progress-step.active span {
    color: #198754;
    font-weight: 700;
}



.progress-step span {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}






/*=========================================================
 TIMELINE
=========================================================*/


#trackingTimeline {
    position: relative;
    padding-left: 40px;
}



    #trackingTimeline:before {
        content: "";
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #ddd;
    }





.timeline-item {
    position: relative;
    margin-bottom: 25px;
}





.timeline-dot {
    position: absolute;
    left: -38px;
    top: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid #fff;
    z-index: 2;
}





.timeline-content {
    background: #fff;
    border-radius: 15px;
    padding: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}





    .timeline-content h6 {
        color: #0d6efd;
        font-weight: 700;
    }





/* Timeline status colors */

.timeline-dot.status-booked {
    background: #6c757d;
}



.timeline-dot.status-picked {
    background: #ffc107;
}



.timeline-dot.status-transit {
    background: #0d6efd;
}



.timeline-dot.status-ofd {
    background: #0dcaf0;
}



.timeline-dot.status-delivered {
    background: #198754;
}





.loading-box {
    text-align: center;
    padding: 50px;
}







/*=========================================================
 MOBILE
=========================================================*/

@@media(max-width:768px) {


    .tracking-search {
        grid-template-columns: 1fr;
    }



    .tracking-summary {
        flex-direction: column;
        gap: 25px;
    }



    #trackingProgress {
        overflow-x: auto;
    }



    .progress-step {
        min-width: 100px;
    }
}
