/*Copyright (c) 2025 TOGA Technologies. All rights reserved.*/
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
}

.tracking-container {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
    justify-items: center;
}

.tracking-event {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px;
    width: 90vw; /* Uses 90% of the viewport width */
    max-width: 300px; /* Prevents cards from getting too wide on larger screens */
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
}

.tracking-event.completed {
    background-color: #ffffff; /* Normal look for completed events */
}

.tracking-event.pending {
    background-color: #f0f0f0; /* Light grey for future events */
    opacity: 0.6; /* Slightly faded to show inactivity */
}

    .tracking-event.warning {
        /*background-color: #fff5e6;*/
        /*border-color: #FF9D03;
        border-left-width: 3px;*/
        border: 2px solid #FF9D03;
    }

.tracking-event:hover {
    transform: scale(1.02);
}

.logo-container {
    display: flex;
    vertical-align: middle;
    width: 90vw; /* Uses 90% of the viewport width */
    max-width: 300px; /* Prevents cards from getting too wide on larger screens */
    margin-left: auto;
}

.tracking-input {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px;
    padding: 15px;
    /*width: 90vw;*/ /* Uses 90% of the viewport width */
    max-width: 300px; /* Prevents cards from getting too wide on larger screens */
    margin-left: auto;
}

.d-none {
    display: none;
}

.icon img {
    width: 40px;
    height: 40px;
}

.event-details {
    display: flex;
    flex-direction: column;
}

.event-details .event-header {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.event-details .event-subheader {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
    margin-top: 5px;
}

.event-subheader {
    display: flex;
    flex-direction: column; /* Stacks the date & time vertically */
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
    text-align: left;
}

.date {
    /*font-weight: 400; /* Makes date slightly bolder */
    color: #474747; /* Darker for emphasis */
}

.time {
    font-size: 0.85rem;
    color: #007bff; /* Adds a slight contrast */
}

.tracking-line {
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, #007bff, #004d99);
    border-radius: 2px;
    justify-self: center;
}

.tracking-line.pending {
    width: 2px;
	background: linear-gradient(to bottom, #616161, #bababa);
	background-color: #bababa; /* Light grey for future events */
    opacity: 0.6; /* Slight fade to visually indicate inactivity */
}

    .tracking-line.warning {
        background: linear-gradient(to bottom, #ff9d03, #cc7e02);
        background-color: #bababa; /* Light grey for future events */
        opacity: 0.6; /* Slight fade to visually indicate inactivity */
    }


.progress-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background-color: #f0f0f0; /* Light grey for unfinished progress */
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px; /* Spacing before tracking events */
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #007bff, #004d99); /* Gradient for a polished look */
    width: 0%; /* Start empty, update dynamically */
    transition: width 0.5s ease-in-out; /* Smooth transition */
    border-radius: 4px;
}

    .progress-bar.warning {
        background: linear-gradient(to right, #ff9d03, #b36e02);
    }

.icon img {
    width: 50px; /* Default size for larger screens */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
}

/* Adjust for mobile screens */
@media (max-width: 600px) {
    .icon img {
        width: 40px; /* Slightly smaller icons on mobile */
    }

    .tracking-event {
        width: 95vw; /* Uses more of the viewport width */
    }
}

.waybill-search-form {
    display: inline-flex;
    border: 2px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
}

.waybill-search-input {
    border: none;
    outline: none; 
    padding: 10px 20px;
    width: 100%;
    border-radius: 25px 0 0 25px;
}

.waybill-search-button {
    background-color: #004d99;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

    .waybill-search-button:hover {
        background-color: #0056AB;
    }

/*********************************************/
a {
    text-decoration: none;
    color: inherit;
}

.cta {
    position: relative;
    margin: auto;
    padding: 15px 22px;
    transition: all 0.2s ease;
}

    .cta:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        border-radius: 28px;
        /*background: rgba(255, 171, 157, 0.5);*/
        background: rgba(255, 157, 3, 0.5);
        width: 45px; /*56*/
        height: 45px;
        transition: all 0.3s ease;
    }

    .cta span {
        position: relative;
        /*font-size: 16px;*/
        /*line-height: 18px;*/
        /*font-weight: 900;*/
        /*letter-spacing: 0.25em;*/
        /*text-transform: uppercase;*/
        vertical-align: middle;
    }

    .cta svg {
        position: relative;
        top: 0;
        margin-left: 10px;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke: #666;
        stroke-width: 2;
        transform: translateX(-5px);
        transition: all 0.3s ease;
    }

    .cta:hover:before {
        width: 100%;
        background: #ffd89a;
    }

    .cta:hover svg {
        transform: translateX(0);
    }

    .cta:active {
        transform: scale(0.96);
    }