.tracking-main {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 80vh;
    background: #fdfbf7;
    font-family: 'Outfit', sans-serif;
}

.tracking-hero {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.tracking-hero h1 {
    font-size: 2.5rem;
    color: var(--color-primary, #0d522c);
    margin-bottom: 15px;
}

.tracking-hero p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.tracking-search {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tracking-search input {
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 350px;
    outline: none;
    transition: all 0.3s ease;
}

.tracking-search input:focus {
    border-color: var(--color-accent, #d49b35);
    box-shadow: 0 0 0 3px rgba(212, 155, 53, 0.2);
}

.tracking-search button {
    padding: 15px 30px;
    background: var(--color-accent, #d49b35);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tracking-search button:hover {
    background: #c38c2b;
}

.error-msg {
    color: #e74c3c !important;
    font-size: 0.9rem !important;
    margin-top: 10px !important;
    display: none;
}

/* Timeline Styles */
.tracking-results {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.order-meta {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-meta h2 {
    font-size: 1.8rem;
    color: var(--color-primary, #0d522c);
    margin-bottom: 5px;
}

.order-meta p {
    color: #666;
}

.timeline-container {
    position: relative;
    padding-left: 50px;
}

/* The vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 2px;
    height: 100%;
    background: #eaeaea;
}

/* Animated progress line */
.timeline-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    width: 2px;
    height: var(--progress-height, 0%);
    background: var(--color-primary, #0d522c);
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-node {
    position: relative;
    margin-bottom: 40px;
    opacity: 0.4;
    transition: all 0.5s ease;
    transform: translateY(10px);
}

.timeline-node:last-child {
    margin-bottom: 0;
}

.timeline-node.active, .timeline-node.completed {
    opacity: 1;
    transform: translateY(0);
}

.node-icon {
    position: absolute;
    left: -50px;
    top: 0;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid #eaeaea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s ease;
    font-size: 1.5rem;
}

.timeline-node.completed .node-icon {
    border-color: var(--color-primary, #0d522c);
    background: var(--color-primary, #0d522c);
    color: #fff;
    box-shadow: 0 0 15px rgba(13, 82, 44, 0.3);
}

.timeline-node.active .node-icon {
    border-color: var(--color-accent, #d49b35);
    background: var(--color-accent, #d49b35);
    color: #fff;
    box-shadow: 0 0 20px rgba(212, 155, 53, 0.4);
    animation: pulse 2s infinite;
}

.node-content {
    background: #fdfbf7;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.timeline-node.active .node-content {
    border-color: var(--color-accent, #d49b35);
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.node-content h3 {
    color: var(--color-primary, #0d522c);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.node-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 155, 53, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 155, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 155, 53, 0); }
}

@media (max-width: 600px) {
    .tracking-search { flex-direction: column; }
    .tracking-search input { max-width: 100%; }
    .tracking-results { padding: 20px; }
}
