.logistics-tracking-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logistics-tracking-form h2 {
    margin-top: 0;
    color: #0056b3;
    text-align: center;
}

.logistics-tracking-form .form-group {
    margin-bottom: 1.5rem;
}

.logistics-tracking-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.logistics-tracking-form input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.logistics-tracking-form input[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.logistics-tracking-form input[type="submit"]:hover {
    background: #003d82;
}

.tracking-results {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tracking-results h2 {
    margin-top: 0;
    color: #0056b3;
}

.shipment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 4px;
}

.shipment-info div {
    padding: 0.5rem 0;
}

.shipment-info strong {
    display: block;
    color: #0056b3;
}

.tracking-updates {
    margin-top: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #0056b3;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 1.2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0056b3;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0056b3;
}

.timeline-item.delivered::before {
    background: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.timeline-item.delayed::before {
    background: #ffc107;
    box-shadow: 0 0 0 2px #ffc107;
}

.timeline-item.returned::before {
    background: #dc3545;
    box-shadow: 0 0 0 2px #dc3545;
}

.update-date {
    font-weight: bold;
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.update-location {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.update-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.status-pending {
    background: #6c757d;
    color: white;
}

.status-in_transit {
    background: #17a2b8;
    color: white;
}

.status-out_for_delivery {
    background: #007bff;
    color: white;
}

.status-delivered {
    background: #28a745;
    color: white;
}

.status-delayed {
    background: #ffc107;
    color: black;
}

.status-returned {
    background: #dc3545;
    color: white;
}

.status-in_customs_clearance,
.status-in-customs-clearance {
    background: #fd7e14;
    color: white;
}

.status-in_inspection,
.status-in-inspection {
    background: #6f42c1;
    color: white;
}

/* Timeline item colors for new statuses */
.timeline-item.in-customs-clearance::before {
    background: #fd7e14;
    box-shadow: 0 0 0 2px #fd7e14;
}

.timeline-item.in-inspection::before {
    background: #6f42c1;
    box-shadow: 0 0 0 2px #6f42c1;
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}