/* Tracking Page Styles */

.track-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.track-header {
    text-align: center;
    margin-bottom: 3rem;
}

.track-header h1 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.track-header p {
    color: var(--text-light);
}

/* Track Form */
.track-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.track-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.track-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.track-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.track-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.track-form .btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.track-form .btn i {
    margin-right: 0.5rem;
}

.track-help {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.track-help p {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.track-help i {
    color: var(--accent-color);
}

/* Tracking Result */
.tracking-result {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.order-info h2 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.order-info h2 span {
    color: var(--accent-color);
}

.order-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-status-badge {
    background: #dbeafe;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-status-badge.delivered {
    background: #dcfce7;
    color: #10b981;
}

.order-status-badge.processing {
    background: #fef3c7;
    color: #f59e0b;
}

/* Tracking Timeline */
.tracking-timeline {
    position: relative;
    padding: 2rem 0;
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

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

.timeline-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-icon i {
    color: var(--text-light);
    font-size: 0.9rem;
}

.timeline-item.completed .timeline-icon {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.timeline-item.completed .timeline-icon i {
    color: white;
}

.timeline-item.active .timeline-icon {
    background: #3b82f6;
    border-color: #3b82f6;
    animation: pulse 2s infinite;
}

.timeline-item.active .timeline-icon i {
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.timeline-content h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: #888;
}

/* Shipping Details */
.shipping-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
}

.detail-card h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-card h3 i {
    color: var(--accent-color);
}

.detail-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Order Items Detail */
.order-items-detail {
    margin-bottom: 2rem;
}

.order-items-detail h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.items-list {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.items-list .item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.items-list .item:last-child {
    border-bottom: none;
}

.items-list .item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.item-qty {
    color: var(--text-light);
    font-size: 0.9rem;
}

.order-total-summary {
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 0 0 12px 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.summary-row.total {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.result-actions .btn i {
    margin-right: 0.5rem;
}

/* No Result */
.no-result {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 0 auto;
}

.no-result i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.no-result h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.no-result p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Track FAQ */
.track-faq {
    padding: 4rem 0;
    background: var(--light-bg);
    margin-top: 4rem;
}

.track-faq h2 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.faq-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.faq-item h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .track-header h1 {
        font-size: 2rem;
    }
    
    .result-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .shipping-details {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .result-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tracking-result {
        padding: 1.5rem;
    }
    
    .tracking-timeline::before {
        left: 17px;
    }
    
    .timeline-icon {
        width: 36px;
        height: 36px;
    }
    
    .timeline-content h4 {
        font-size: 0.95rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .items-list .item {
        flex-wrap: wrap;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .track-faq, .result-actions, .track-form-wrapper {
        display: none !important;
    }
    
    .tracking-result {
        box-shadow: none;
        padding: 0;
    }
    
    .track-section {
        padding: 0;
    }
}
