


/* Base styling for tracking block */
.tracking-block {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb styling */
.wshipping-breadcroumb {
    background: #f8f9fa;
    padding: 20px 0;
    margin-bottom: 20px;
}

.wshipping-breadcroumb h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.wshipping-breadcroumb a {
    color: #007bff;
    text-decoration: none;
    font-size: 1em;
}

.wshipping-breadcroumb a:hover {
    text-decoration: underline;
}

.wshipping-breadcroumb .text-right h4 {
    font-size: 1.2em;
    font-weight: 400;
}

.wshipping-breadcroumb .text-right h4 span {
    color: #28a745;
    font-weight: 600;
}

/* Tab and form styling */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: #495057;
    padding: 10px 20px;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.put-track-number {
    margin-bottom: 15px;
}

.put-track-number .form-control {
    display: inline-block;
    width: 70%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-right: 10px;
    transition: border-color 0.3s;
}

.put-track-number .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    outline: none;
}

.btn-track {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-track:hover {
    background-color: #0056b3;
    cursor: pointer;
}

.track-bottom-link {
    font-size: 0.9em;
}

.track-bottom-link a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}

.track-bottom-link a:hover {
    text-decoration: underline;
}

/* Result section styling */
.track-result-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.track-result h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

.track-result-block {
    padding: 15px;
}

.track-result-id,
.track-status {
    margin-bottom: 15px;
}

.track-result-id b,
.track-status b {
    font-weight: 600;
    color: #333;
}

.track-status .row {
    display: flex;
    justify-content: space-between;
}

.track-status .col-12.col-lg-4 {
    text-align: center;
}

.track-error {
    margin-top: 15px;
    font-size: 1em;
    font-weight: 600;
    color: #dc3545;
    display: block;
}

/* Progress bar styling */
.track-result-bar {
    margin-top: 20px;
}

.track-progress {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    position: relative;
}

.track-progress li {
    flex: 1;
    text-align: center;
    position: relative;
    color: #6c757d;
    font-size: 0.9em;
}

.track-progress li.track-active {
    color: #28a745;
    font-weight: 600;
}

.track-progress li:before {
    content: '';
    width: 12px;
    height: 12px;
    background: #6c757d;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 5px;
    transition: background 0.3s;
}

.track-progress li.track-active:before {
    background: #28a745;
}

.track-progress li:after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #6c757d;
    z-index: -1;
}

.track-progress li:first-child:after {
    width: 50%;
    left: 0;
}

.track-progress li:last-child:after {
    width: 50%;
    right: 0;
}

.track-progress li.track-active+li:after {
    background: #28a745;
}

ul.track-progress li[class^="icon-"]:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    background-color: #047cac;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    line-height: 1;
    z-index: 1;
    position: relative;
}

/* Individual icons with correct unicodes */
ul.track-progress li.icon-confirm-order:before {
    content: "\f217";
    /* fa-address-book */
}

ul.track-progress li.icon-process-order:before {
    content: "\f201";
    /* fa-bar-chart */
}

ul.track-progress li.icon-quality-check:before {
    content: "\f2a3";
    /* fa-balance-scale */
}

ul.track-progress li.icon-dispatched-item:before {
    content: "\f0d1";
    /* fa-truck */
}

ul.track-progress li.icon-product-deliver:before {
    content: "\f14a";
    /* fa-archive */
}

/* Scroll-up button */
.scrollup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.2em;
    transition: opacity 0.3s;
}

.scrollup:hover {
    background: #0056b3;
    opacity: 0.9;
}

.scrollup i {
    margin-top: -2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wshipping-breadcroumb .row {
        flex-direction: column;
        text-align: center;
    }

    .wshipping-breadcroumb .text-right {
        margin-top: 10px;
    }

    .put-track-number .form-control {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-track {
        width: 100%;
    }

    .track-status .row {
        flex-direction: column;
        text-align: center;
    }

    .track-status .col-12.col-lg-4 {
        margin-bottom: 10px;
    }

    .track-progress li {
        font-size: 0.8em;
    }
}