.tracking-page {
    padding: 120px 0 60px;
    min-height: 80vh;
    background: var(--bg);
}

.tracking-header {
    text-align: center;
    margin-bottom: 40px;
}

.tracking-header h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tracking-card {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.tracking-search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tracking-search input {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--surface);
    color: var(--text);
    transition: all 0.3s ease;
}

.tracking-search input:focus {
    border-color: var(--primary);
    outline: none;
}

.tracking-search .track-btn {
    padding: 0 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tracking-search .track-btn:hover {
    filter: brightness(0.88);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

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

.shipment-info {
    margin-top: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--surface-alt);
    border-radius: 8px;
}

.info-item {
    text-align: center;
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

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

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text);
}

.timeline-item {
    display: flex;
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 25px;
    bottom: -15px;
    width: 2px;
    background: var(--border);
}

.timeline-dot {
    position: absolute;
    left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--surface);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.timeline-dot.completed {
    background: #28a745;
}

.timeline-dot.current {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255,123,0,0.2);
}

.timeline-content {
    flex: 1;
    background: var(--surface);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
}

.timeline-status {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.timeline-location {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.timeline-location i {
    margin-right: 5px;
    color: var(--accent);
}

.timeline-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-date {
    color: var(--text-faint);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-date i {
    font-size: 0.8rem;
}

.no-history {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    background: var(--surface-alt);
    border-radius: 8px;
}

.back-home {
    text-align: center;
    margin-top: 30px;
}

.back-home a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-home a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tracking-search {
        flex-direction: column;
    }
    
    .tracking-search button {
        padding: 15px;
    }
}