

.tracker-section {
    padding: 160px 0 100px;
    flex: 1;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 10px;
    background: white;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    width: 100%;
    transition: all 0.3s ease;
}

.search-box input {
    border: none;
    padding: 10px 25px;
    flex: 1;
    min-width: 0;
    /* Prevents input from overflowing flex container */
    font-size: 1.1rem;
    border-radius: 50px;
    outline: none !important;
    box-shadow: none !important;
}

.search-box:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.15);
}

.search-box button {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevents text from wrapping inside button */
}

@media (max-width: 440px) {
    .search-box {
        padding: 6px;
        gap: 5px;
    }

    .search-box input {
        padding: 8px 15px;
        font-size: 1rem;
    }

    .search-box button {
        padding: 10px 20px;
    }
}

@media (max-width: 360px) {
    .search-box {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
    }

    .search-box input {
        background: white;
        border: 1px solid #eee;
        margin-bottom: 10px;
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .search-box button {
        width: 100%;
        border-radius: 15px;
        padding: 15px;
    }
}

.search-box button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    display: none;
    animation: fadeIn 0.5s ease;
}



.order-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-delivered {
    background: #d4edda;
    color: #155724;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-item label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item span {
    font-weight: 700;
    font-size: 1.2rem;
}

.color-selector {
    margin-bottom: 40px;
}

.color-selector select {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid #eee;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s;
}

.color-selector select:focus {
    border-color: var(--primary-green);
    outline: none;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 0;
    margin-top: 40px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 40px;
    padding-bottom: 40px;
    align-items: start;
}

/* The vertical line connecting dots */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 23px;
    height: 100%;
    width: 2px;
    background: #eee;
    z-index: 1;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item:last-child {
    padding-bottom: 0;
}



.timeline-date {
    width: 120px;
    text-align: right;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    padding-top: 15px;
    display: block;
}

.timeline-dot {
    position: absolute;
    left: 136px;
    top: 18px;
    width: 10px;
    height: 10px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
    z-index: 2;
}

.timeline-content {
    background: #fff;
    padding: 20px 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    flex-grow: 1;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 18px;
    width: 15px;
    height: 15px;
    background: white;
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
    transform: rotate(45deg);
}

.timeline-content:hover {
    transform: translateX(5px);
    border-color: var(--primary-green);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.08);
}

.timeline-content:hover::before {
    border-left-color: var(--primary-green);
    border-bottom-color: var(--primary-green);
}

.timeline-note {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.5;
}

@media (max-width: 650px) {
    .timeline-item::before {
        left: 15px;
        top: 10px;
    }

    .timeline-item {
        flex-direction: column;
        gap: 10px;
        padding-left: 40px;
    }

    .timeline-date {
        width: auto;
        text-align: left;
        padding-top: 0;
    }

    .timeline-dot {
        left: 11px;
        top: 5px;
    }

    .timeline-content::before {
        display: none;
    }
}

.timeline-compact .timeline-item {
    padding-bottom: 25px;
}



.timeline-compact .timeline-dot {
    left: 136px;
}

@media (max-width: 650px) {


    .timeline-compact .timeline-dot {
        left: 11px;
    }
}

#loading-spinner {
    display: none;
    margin: 20px auto;
}

.error-message {
    display: none;
    background: #f8d7da;
    color: #721c24;
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}



.btn-light-print {
    border: 1px solid #e0e0e0 !important;
    color: #999 !important;
    transition: all 0.3s ease !important;
}

.btn-light-print:hover {
    border-color: #ccc !important;
    background-color: #f8f9fa !important;
    color: #666 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

footer {
    background: white;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
    width: 100%;
}



/* Print Styles */
@media print {
    body {
        display: block !important;
        min-height: auto !important;
    }

    body>* {
        display: none !important;
    }

    #print-section {
        display: block !important;
        margin: 0;
        padding: 0;
        width: 100%;
    }
}

@media screen {
    #print-section {
        display: none;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-page {
        padding: 10mm;
        font-size: 0.85rem;
        background: white;
        display: block;
        position: relative;
        box-sizing: border-box;
        page-break-after: always;
    }

    .print-contact {
        font-size: 0.75rem;
        color: #555;
        margin-top: 40px;
        border-top: 1px solid #ddd;
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }

    .print-contact .contact-details {
        display: flex;
        justify-content: space-between;
        font-weight: bold;
        color: #333;
    }

    .print-contact .footer-text {
        text-align: center;
        font-style: italic;
        color: #888;
        font-size: 0.7rem;
        margin-top: 5px;
    }

    .print-page:last-child {
        page-break-after: auto;
    }

    .print-page.colors-page {
        page-break-after: auto;
    }

    .colors-page h4 {
        page-break-before: always;
    }

    .colors-page h4:first-of-type {
        page-break-before: avoid;
    }

    .print-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid var(--primary-green);
        margin-bottom: 30px;
        padding-bottom: 10px;
    }

    .print-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .print-item label {
        display: block;
        font-size: 0.7rem;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .print-item span {
        font-weight: 700;
        font-size: 0.95rem;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 15px;
        page-break-inside: auto;
    }

    .print-table th,
    .print-table td {
        border: 1px solid #ddd;
        padding: 6px 10px;
        text-align: left;
        font-size: 0.8rem;
    }

    .print-table th {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-table thead {
        display: table-header-group;
    }

    .print-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    h4 {
        color: var(--primary-green);
        border-left: 5px solid var(--primary-green);
        padding-left: 10px;
        margin: 20px 0 10px;
        font-size: 1rem;
        page-break-after: avoid;
    }
}

#print-section {
    display: none;
}
