* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #17202a;
    line-height: 1.6;
}

/* HEADER */

header {
    background: #ffffff;
    padding: 20px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #17202a;
    font-weight: 600;
}

nav a:hover {
    opacity: 0.7;
}

/* HERO */

.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 80px 7%;
    background: linear-gradient(
        135deg,
        #102a43,
        #1f4e79
    );
    color: white;
}

.hero-content {
    max-width: 850px;
}

.small-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero p {
    font-size: 18px;
    max-width: 650px;
    margin-bottom: 30px;
}

/* TRACKING BOX */

.tracking-box {
    background: white;
    color: #17202a;
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tracking-box h2 {
    margin-bottom: 5px;
}

.tracking-box p {
    font-size: 15px;
    margin-bottom: 20px;
}

.tracking-form {
    display: flex;
    gap: 10px;
}

.tracking-form input {
    flex: 1;
    padding: 16px;
    border: 1px solid #ccd6dd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
}

.tracking-form input:focus {
    border-color: #1f4e79;
}

.tracking-form button {
    padding: 16px 25px;
    border: none;
    border-radius: 6px;
    background: #1f4e79;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.tracking-form button:hover {
    opacity: 0.9;
}

/* RESULT */

.result-section {
    padding: 60px 7%;
}

.shipment-result {
    background: white;
    padding: 35px;
    border-radius: 12px;
    max-width: 1000px;
    margin: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.shipment-result h2 {
    margin-bottom: 25px;
}

.shipment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.shipment-grid div {
    padding: 18px;
    background: #f4f6f8;
    border-radius: 8px;
}

.shipment-grid span {
    display: block;
    font-size: 13px;
    color: #6b7785;
    margin-bottom: 5px;
}

.shipment-grid strong {
    font-size: 16px;
}

/* ERROR */

.error {
    background: #ffe5e5;
    color: #b42318;
    padding: 15px;
    border-radius: 8px;
    max-width: 700px;
    margin: auto;
}

.hidden {
    display: none;
}

/* SERVICES */

.services {
    padding: 80px 7%;
    background: white;
    text-align: center;
}

.services h2 {
    font-size: 35px;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.service-card {
    padding: 30px;
    background: #f4f6f8;
    border-radius: 10px;
}

.service-card h3 {
    margin-bottom: 10px;
}

/* FOOTER */

footer {
    background: #102a43;
    color: white;
    text-align: center;
    padding: 45px 7%;
}

footer h3 {
    margin-bottom: 10px;
}

/* MOBILE */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 45px;
    }

    .tracking-form {
        flex-direction: column;
    }

    .shipment-grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}
.tracking-timeline {
    max-width: 850px;
    margin: 0 auto 40px;
    padding: 10px 0;
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 0 0 30px 0;
    opacity: 0.45;
}

.timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 38px;
    width: 2px;
    height: calc(100% - 8px);
    background: #ccd6dd;
}

.timeline-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #d9e1e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.timeline-content {
    padding-top: 2px;
}

.timeline-content strong {
    display: block;
    font-size: 17px;
    margin-bottom: 3px;
}

.timeline-content span {
    display: block;
    font-size: 14px;
    color: #6b7785;
}

.timeline-step.completed,
.timeline-step.active {
    opacity: 1;
}

.timeline-step.completed .timeline-icon {
    background: #1f4e79;
    color: white;
}

.timeline-step.active .timeline-icon {
    background: #102a43;
    color: white;
}

.timeline-step.active .timeline-content strong {
    font-size: 18px;
}

@media (max-width: 600px) {

    .tracking-timeline {
        padding-left: 5px;
    }

    .timeline-step {
        gap: 12px;
    }

    .timeline-content strong {
        font-size: 15px;
    }

    .timeline-content span {
        font-size: 13px;
    }
}
/* ADMIN DASHBOARD */

.admin-hero {
    background: linear-gradient(
        135deg,
        #102a43,
        #1f4e79
    );

    color: white;
    padding: 70px 7%;
}

.admin-hero h1 {
    font-size: 48px;
    margin: 10px 0;
}

.admin-section {
    padding: 60px 7%;
}

.admin-card {
    max-width: 1000px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.admin-card h2 {
    margin-bottom: 5px;
    font-size: 30px;
}

.admin-description {
    color: #6b7785;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccd6dd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1f4e79;
}

.full-width {
    grid-column: 1 / -1;
}

.admin-button {
    margin-top: 30px;
    padding: 16px 30px;
    border: none;
    border-radius: 6px;
    background: #1f4e79;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.admin-button:hover {
    opacity: 0.9;
}

.admin-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    background: #e8f5e9;
}

@media (max-width: 768px) {

    .admin-hero h1 {
        font-size: 38px;
    }

    .admin-section {
        padding: 40px 5%;
    }

    .admin-card {
        padding: 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }
}
.login-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 7%;
}

.login-card {
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    font-size: 36px;
    margin: 10px 0;
}

.login-description {
    color: #6b7785;
    margin-bottom: 30px;
}

.login-card .form-group {
    margin-bottom: 20px;
}
.shipment-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 25px;
}

.shipment-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

.shipment-table th,
.shipment-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.shipment-table th {
    font-weight: 600;
    background: #f8fafc;
}

.shipment-table tr:hover {
    background: #f8fafc;
}

.shipment-table td strong {
    font-weight: 600;
}
.shipment-history-section {
    margin-top: 40px;
}

.shipment-history-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.shipment-history-card h2 {
    margin-bottom: 5px;
}

.history-subtitle {
    color: #6b7785;
    margin-bottom: 30px;
}

.history-item {
    position: relative;
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
}

.history-item:last-child {
    padding-bottom: 0;
}

.history-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1d4ed8;
    margin-top: 5px;
    flex-shrink: 0;
}

.history-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 19px;
    bottom: 0;
    width: 2px;
    background: #dbe3ef;
}

.history-content h3 {
    margin: 0 0 6px;
}

.history-content p {
    margin: 5px 0;
}

.history-content small {
    display: block;
    margin-top: 8px;
    color: #6b7785;
}
.company-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    background: #1d4ed8;
    color: white;
}

.company-brand h1 {
    margin: 0;
    font-size: 22px;
}

.company-brand p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #6b7785;
}
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-registered {
    background: #e5e7eb;
    color: #374151;
}

.status-picked-up {
    background: #dbeafe;
    color: #1e40af;
}

.status-in-transit {
    background: #e0e7ff;
    color: #3730a3;
}

.status-at-facility {
    background: #fef3c7;
    color: #92400e;
}

.status-out-for-delivery {
    background: #dcfce7;
    color: #166534;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}
.print-tracking-button {
    margin-top: 25px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

@media print {

    body {
        background: white !important;
    }

    header,
#printTrackingButton {
    display: none !important;
}

    .shipment-result,
    .shipment-history-section,
    .shipment-history-card {
        display: block !important;
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        background: white !important;
    }

    .shipment-history-section {
        margin-top: 25px !important;
    }

    button {
        display: none !important;
    }

}



}
.tracking-form input {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.tracking-form button {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}
.tracking-form {
    display: flex;
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    position: relative;
    z-index: 20;
}

.tracking-form input {
    flex: 1;
    display: block;
    min-width: 0;
    padding: 17px;
    border: 1px solid #ccc;
    font-size: 16px;
    background: white;
    color: #222;
    position: relative;
    z-index: 21;
    pointer-events: auto;
}

.tracking-form button {
    display: block;
    padding: 0 30px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 21;
    pointer-events: auto;
}

@media (max-width: 700px) {
    .tracking-form {
        flex-direction: column;
    }

    .tracking-form button {
        padding: 15px;
        margin-top: 10px;
    }
}