
body {
    background: #F4F7FA;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.header-navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-logo img {
    height: 60px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li a {
    color: #2E3A59;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

.navbar-menu li a:hover {
    color: #E1001A;
}

.navbar-menu li a.active {
    color: #E1001A;
    font-weight: 600;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2E3A59;
    cursor: pointer;
}



/* Main Container */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 20px;
}

/* Tracker Card */
.tracker-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 50px 60px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.tracker-subtitle {
    color: #7D8592;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 10px;
}

.tracker-title {
    color: #2E3A59;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 35px;
}

.form-label {
    color: #2E3A59;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    display: block;
    margin-bottom: 12px;
}

.form-label .required {
    color: #E1001A;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.5;
}

.form-input {
    width: 100%;
    padding: 14px 18px 14px 50px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #2E3A59;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-input:focus {
    border-color: #E1001A;
    box-shadow: 0 0 0 3px rgba(225, 0, 26, 0.1);
}

.helper-text {
    text-align: left;
    color: #6B7280;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.helper-text::before {
    content: "▶";
    color: #2E3A59;
    font-size: 10px;
    margin-right: 8px;
}

.track-btn {
    background: #E1001A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(225, 0, 26, 0.25);
}

.track-btn:hover {
    background: #C10016;
    box-shadow: 0 6px 16px rgba(225, 0, 26, 0.35);
    transform: translateY(-2px);
}

.track-btn:active {
    transform: translateY(0);
}

/* Loader Overlay */
.loader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loader-overlay.active {
    display: flex;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #E1001A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

/* Results Section */
.results-section {
   /* display: none;*/
    width: 100%;
    padding: 0 15px 30px;
}

.results-section.active {
    display: block;
}

.results-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.results-header {
    background: #F9FAFB;
    color: #E1001A;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-shipment-btn {
    background: #6B7280;
    color: #ffffff;
}

.track-shipment-btn:hover {
    background: #4B5563;
}

.download-pod-btn {
    background: #FCD34D;
    color: #1F2937;
}

.download-pod-btn:hover {
    background: #FBB03B;
}

.table-responsive {
    overflow-x: auto;
}

.tracking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.tracking-table thead {
    background: #F9FAFB;
}

.tracking-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: #1F2937;
    border-bottom: 2px solid #E5E7EB;
    white-space: nowrap;
    font-size: 13px;
}

.tracking-table td {
    padding: 16px;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: top;
    color: #374151;
    line-height: 1.5;
    font-size: 12px;
}

.tracking-table tbody tr {
    transition: background 0.2s ease;
}

.tracking-table tbody tr:hover {
    background: #F9FAFB;
}

.docket-number {
    font-weight: 700;
    color: #1F2937;
    font-size: 13px;
}

.shipment-detail {
    margin-bottom: 6px;
    font-size: 12px;
}

.shipment-detail strong {
    color: #1F2937;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-delivered {
    background: #D1FAE5;
    color: #065F46;
}

.status-in-transit {
    background: #FEF3C7;
    color: #92400E;
}

.remarks-text {
    color: #059669;
    font-weight: 600;
    font-size: 12px;
}

@media(max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 15px;
    }

    .navbar-menu.show {
        display: flex;
    }

    .main-container {
        min-height: calc(100vh - 120px);
        padding: 15px;
    }

    .tracker-card {
        padding: 35px 25px;
    }

    .tracker-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .tracker-subtitle {
        font-size: 14px;
    }

    .results-header {
        padding: 15px 20px;
    }

    .results-header h2 {
        font-size: 18px;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .tracking-table {
        font-size: 11px;
    }

    .tracking-table th,
    .tracking-table td {
        padding: 12px 10px;
        font-size: 11px;
    }

    /* Make table scroll horizontally on mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tracking-table {
        min-width: 800px;
    }
}

@media(max-width: 480px) {
    .tracker-card {
        padding: 30px 20px;
    }

    .tracker-title {
        font-size: 22px;
    }

    .track-btn {
        width: 100%;
    }

    .results-section {
        padding: 0 10px 20px;
    }

    .spinner {
        width: 50px;
        height: 50px;
    }

    .loader-text {
        font-size: 16px;
    }
}