@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    font-family: 'Roboto', sans-serif;
    max-height: 100vh;
    overflow-y: auto;
    
}
.error-message {
    background-color: #ffefef;
    color: #d8000c;
    border: 1px solid #d8000c;
    padding: 12px 16px;
    margin: 20px auto;
    width: fit-content;
    max-width: 80%;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(216, 0, 12, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;

    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideDown 0.4s ease forwards;
}

.error-message::before {
    content: "⚠️";
    font-size: 20px;
}

@keyframes fadeSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* Loader Styles */
/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Loader Container */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #E67E22;
    animation: spin 1s linear infinite;

}

/* Spinner */
/* .loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #E67E22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
} */

/* Tracking Text */
.loader-container .tracking-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: #374151;
}

/* Animated Dots */
.tracking-text .dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}

.dots::after {
    content: '...';
    animation: blink 1.4s infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Popup styles */
#trackingLoader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#trackingLoader > div.loader-container {
    /* background: white; */
    padding: 30px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 250px;
    min-height: 250px;
    /* display: inline; */
    position: relative;
}
#trackingLoader > .tracking-text{
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.loader-message {
    margin-top: 15px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.container {
    height: auto;
    width: 100%;
    position: relative;
   margin-top: 100px;
    padding: 20px;
}

/* Header Section */
.container .header-section {
    max-width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    top: 20px;
}

.container .header-section .trklogo img {
    height: 100px;
    max-width: 100%;
    width: 200px;
    margin-bottom: 10px;
    
}

/* Content Section */
.container .content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    z-index: 1;
}

/* Content Header Container */
.content .content-header-container form {
    position: relative;
    height: auto;
    width: 100%;
    padding: 20px;
    border: 1px solid #E67E22;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.content-header-container .tracking-input-container {
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.content-header-container .fields {
    height: 60px;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    border: 1px solid gray;
}

.content-header-container .fields input,
.content-header-container .fields select {
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border-radius: 9px;
    outline: none;
    border: none;
    font-size: 18px;
    background-color: white;
    border: 1px solid #E67E22;


}

.content-header-container .fields select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.content-header-container .fields:last-child {
    border: none;
}

.content-header-container .fields:last-child button {
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border-radius: 9px;
    outline: none;
    border: 2px solid #E67E22;
    font-size: 18px;
    cursor: pointer;
    background-color: rgb(238, 238, 238);
}

.content-header-container #trackButton {
    padding: 7px 20px;
    height: 60px;
    width: 100%;
    max-width: 150px;
    border-radius: 9px;
    outline: none;
    border: 2px solid #E67E22;
    font-size: 18px;
    cursor: pointer;
    background-color: rgb(238, 238, 238);
    transition: all 0.3s ease;
}

.content-header-container #trackButton:hover {
    background-color: #E67E22;
    color: white;
}
/* Heading Section */
.container .content .heaidng {
    height: 50px;
    width: 100%;
    background-color: #F38400;
    position: relative;
    margin-top: 20px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .content .heaidng h1 {
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 24px;
}

/* Table Container */
.container .content .tabel-container {
    height: auto;
    width: 100%;
    position: relative;
    margin-top: 20px;
    border: 2px solid #F38400;
    border-radius: 20px;
    padding: 20px;
}

.tabel-header .order-id-container {
    position: relative;
    margin-bottom: 20px;
}

.order-id-container span {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
}

.tabel-header-content {
    width: 100%;
    height: auto;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #F38400;
    margin-bottom: 20px;
}

.tabel-header-content .header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header-content p {
    font: 21px 'Roboto', sans-serif;
    font-weight: 600;
}

.header-content p span {
    font-weight: normal;
    font-size: 18px;
}

.tabel-content {
    height: auto;
    width: 100%;
    position: relative;
}

.tabel-content .stepper-container {
    height: auto;
    width: 100%;
}

/* Stepper Styles */
.stepper .active-step {
    color: #E67E22 !important;
}

.stepper .active-step::after {
    background-color: #E67E22 !important;
}

.stepper .active-step span {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
    color: white !important;
}

.stepper .line-filled::after {
    background-color: #E67E22 !important;
}

.stepper li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 0 10px;
}

.stepper li::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 100%;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 1;
    transform: translateX(-50%);
}

.stepper li:last-child::after {
    display: none;
}

.stepper ol {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stepper li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stepper li span {
    margin-bottom: 8px;
}

@keyframes selected-glow {
    0% {
        box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.7);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(230, 126, 34, 0.4);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.7);
    }
}

.current-step .step-icon {
    animation: selected-glow 1.5s infinite;
    position: relative;
    z-index: 10;
}

/* Product Table */
.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-table th,
.product-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.product-table th {
    background-color: #E67E22;
}

/* Media Queries for Responsiveness */

/* For Laptops */
@media (max-width: 1440px) and (max-height: 900px) {
    body {
        overflow-y: auto;
    }

    .container {
        transform: scale(0.85);
        transform-origin: top center;
    }

    .container .content {
        width: 100%;
    }

    .content .content-header-container {
        padding: 10px;
        gap: 10px;
    }

    .content-header-container .fields {
        height: 40px;
        max-width: 230px;
    }

    .button {
        height: 40px;
        width: 220px;
        color: rgb(177, 175, 175);
        max-width: 300px;
        /* background-color: rgb(0, 0, 0); */
        border-radius: 10px;
        border: 1px solid gray;
    }

    .content-header-container .fields input,
    .content-header-container .fields select {
        padding: 6px 12px;
        font-size: 14px;
    }

    .content-header-container .fields:last-child button {
        padding: 6px 12px;
        font-size: 14px;
    }

    .container .content .heaidng h1 {
        font-size: 20px;
    }

    .container .header-section .logo img {
        width: 200px;
    }

    .tabel-header-content .header-content p {
        font-size: 17px;
    }

    .tabel-header-content .header-content p span {
        font-size: 14px;
    }

    .product-table th,
    .product-table td {
        padding: 8px;
    }

    .stepper li span {
        font-size: 12px;
    }

    .stepper li::after {
        top: 20%;
    }
}

/* For Tablets */
@media (max-width: 1024px) {
    .container .header-section .logo img {
        width: 250px;
    }

    .container .content {
        top: 15%;
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    .container .header-section .logo img {
        width: 200px;
    }

    .container .content {
        top: 10%;
    }

    .content-header-container .fields select {
        font-size: 16px;
    }

    .details-section,
    .details-section .first-row,
    .details-section .second-row {
        display: flex;
        width: 100%;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .item-details-section {
        overflow-x: auto;
        margin-bottom: 30px;
    }

    /* .remarks-container{
                overflow-x: auto;
            } */
}

/* For Small Mobile Phones */
@media (max-width: 480px) {
    .container .header-section .logo img {
        width: 150px;
    }

    .container .content {
        top: 5%;
    }

    .content-header-container .fields select {
        font-size: 14px;
    }
}

.details-section {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.first-row,
.second-row {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shipment-details,
.track-details,
.sender-details,
.receiver-details {
    background-color: #f1f3f7;
    padding: 20px;
    min-height: 52%;
}
.shipment-details h2,
.track-details h2,
.sender-details h2,
.receiver-details h2{
    font-size: 20px;
    font-weight: bolder;
}
.details p {
    position: relative;
    display: flex;
    margin: 5px 0;
    width: 100%;
    color: #555;
    white-space: normal;
    font-size: 15px;
    font-weight: bold;
}

.details span {
    position: absolute;
    right: 0px;
}
.item-details-section{
    margin-top: 20px;
}
.item-details-section h2{
    font-size: 25px;
    font-weight: bolder;
}

/* Vertical Stepper Styles */
.stepper-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.stepper {
    width: 100%;
    max-width: 200px;
}

.stepper ol {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

.stepper li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 10px 0;
}

/* Vertical connecting lines */
.stepper li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 20px;
    background-color: #e5e7eb;
    z-index: 1;
}

.stepper li .block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stepper li span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background-color: #e5e7eb;
    border: 2px solid #e5e7eb;
    z-index: 2;
}

/* Active step styling */
.stepper .active-step {
    color: #E67E22 !important;
}

.stepper .active-step span {
    background-color: #E67E22 !important;
    border-color: #E67E22 !important;
    color: white !important;
}

/* Completed step styling */
.stepper .line-filled::after {
    background-color: #E67E22 !important;
}

/* Responsive adjustments */
@media (min-width: 801px) {
    .stepper {
        max-width: 100%;
    }

    .stepper ol {
        flex-direction: row;
        justify-content: space-between;
    }

    .stepper li {
        flex: 1;
    }

    .stepper li:not(:last-child)::after {
        top: 30%;
        left: 100%;
        width: 100%;
        height: 2px;
        transform: translateX(-50%);
    }
}

.remarks-container {
    margin-top: 30px;
    border: 2px solid #E67E22;
    border-radius: 8px;
}

.remarks-header {
    background-color: #E67E22;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.remarks-table {
    width: 100%;
    border-collapse: collapse;
}

.remarks-table th {
    background-color: #f7fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.remarks-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.remarks-table tr:last-child td {
    border-bottom: none;
}

.hidden {
    display: none;
}

.no-data {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
    border: 1px dashed #ccc;
    margin: 20px 0;
    border-radius: 8px;
}

/* New styles for the add remarks section */
.add-remarks-container {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f7fafc;
}

.add-remarks-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: #E67E22;
}

.remarks-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    position: relative;
    top: 5px;
    height: 39px;
    resize: vertical;
}

.add-remarks-btn {
    background-color: #E67E22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.add-remarks-btn:hover {
    background-color: #d35400;
}

/* Delete button styles */
.delete-btn {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
}

.delete-btn:hover {
    color: #c0392b;
}

/* Confirmation modal */
.modal {
    display: none;
    position: fixed;
    /* top: 0; */
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.confirm-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
}

.cancel-btn {
    background-color: #bdc3c7;
    color: #2c3e50;
    border: none;
}

/* Content Section */
.container .content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    z-index: 1;
}

/* Content Header Container */
.content .tracking-input-section form {
    position: relative;
    height: auto;
    width: 100%;
    padding: 20px;
    border: 1px solid #E67E22;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
}

.tracking-input-section .tracking-input-container {
    display: flex;
    width: 100%;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.tracking-input-section .fields {
    height: 60px;
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    border: 1px solid gray;
}

.tracking-input-section  input {
    padding: 10px 20px;
    height: 100%;
    width: 50%;
    border-radius: 9px;
    outline: none;
    border: none;
    font-size: 18px;
    background-color: white;
    border: 1px solid #E67E22;


}

.tracking-input-section .fields select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.tracking-input-section .fields:last-child {
    border: none;
}

.tracking-input-section .fields:last-child button {
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border-radius: 9px;
    outline: none;
    border: 2px solid #E67E22;
    font-size: 18px;
    cursor: pointer;
    background-color: rgb(238, 238, 238);
}

.tracking-input-section form #trackButton {
    padding: 7px 20px;
    height: 40px;
    width: 100%;
    max-width: 150px;
    border-radius: 9px;
    outline: none;
    border: 2px solid #E67E22;
    font-size: 18px;
    cursor: pointer;
    background-color: rgb(238, 238, 238);
    transition: all 0.3s ease;
}

.content-header-container #trackButton:hover {
    background-color: #E67E22;
    color: white;
}