/* Public Tracking Page Styles */

.tracking-hero {
    background: linear-gradient(135deg, #0f122c 0%, #1a1f4e 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}

.tracking-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tracking-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box .input-group {
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-box input {
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    background: transparent;
}

.search-box input:focus {
    box-shadow: none;
    outline: none;
}

.search-box button {
    background: #f05624;
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: #d94a1e;
}

/* Truck Loading Animation */
.truck-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.truck-loader i {
    animation: driveRight 1s ease-in-out infinite;
}

[dir="rtl"] .truck-loader i {
    animation: driveLeft 1s ease-in-out infinite;
}

@keyframes driveRight {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

@keyframes driveLeft {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
}

/* Results Section */
.results-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 400px;
}

.shipment-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.shipment-card h4 {
    color: #0f122c;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.shipment-card h4 i {
    color: #f05624;
    margin-left: 10px;
}

[dir="ltr"] .shipment-card h4 i {
    margin-left: 0;
    margin-right: 10px;
}

/* Shipment Info */
.shipment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    flex: 1;
    min-width: 200px;
}

.info-item label {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
}

.info-item span {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #f05624, #ff7849);
    border-radius: 3px;
}

[dir="ltr"] .timeline::before {
    right: auto;
    left: 20px;
}

.timeline-item {
    position: relative;
    padding: 20px 50px 20px 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: all 0.3s ease;
}

[dir="ltr"] .timeline-item {
    padding: 20px 20px 20px 50px;
}

.timeline-item:hover {
    background: #f0f0f0;
    transform: translateX(-5px);
}

[dir="ltr"] .timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 25px;
    width: 14px;
    height: 14px;
    background: #f05624;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #f0562433;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 3px #f0562433;
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 0 8px #f0562422,
            0 0 20px #f0562444;
        transform: scale(1.1);
    }
}

[dir="ltr"] .timeline-item::before {
    right: auto;
    left: 14px;
}

.timeline-message {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.timeline-time {
    color: #888;
    font-size: 0.9rem;
}

/* Error Box */
.error-box {
    background: #fff3f3;
    border: 1px solid #ffdddd;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #d63031;
}

.error-box i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .tracking-hero {
        padding: 50px 0;
    }

    .tracking-hero h1 {
        font-size: 1.8rem;
    }

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

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