.tracking-section {
    padding: 2rem 5%;
    background-color: #f9f9f9;
    min-height: 70vh;
}

.tracking-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tracking-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.tracking-card {
    display: none;
}

.order-header {
    text-align: center;
    margin-bottom: 2rem;
}

.order-header h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.order-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 0.5rem;
}

.order-status.placed {
    background: #e3f2fd;
    color: #1565c0;
}

.order-status.preparing {
    background: #fff3e0;
    color: #e65100;
}

.order-status.on-the-way {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status.delivered {
    background: #f1f8e9;
    color: #558b2f;
}

.order-timeline {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
    padding: 0 1rem;
}

.order-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #eee;
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.timeline-step.active {
    opacity: 1;
}

.timeline-step.active .step-icon {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #666;
    transition: all 0.3s ease;
}

.step-info {
    max-width: 120px;
}

.step-info h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.step-info p {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin: 0;
}

.order-details {
    margin-top: 2rem;
}

.delivery-info {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.delivery-info h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.delivery-info p {
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

.order-items {
    margin-bottom: 2rem;
}

.order-items h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

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

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

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

.item-info p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.order-summary {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.estimated-time {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.estimated-time i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.estimated-time p {
    color: var(--dark-color);
    font-weight: 500;
}

.no-order {
    text-align: center;
    padding: 3rem 0;
}

.no-order i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.no-order h2 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.no-order p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .order-timeline {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 3rem;
    }

    .order-timeline::before {
        left: 45px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .timeline-step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .step-icon {
        margin-bottom: 0;
        margin-right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-info {
        text-align: left;
        max-width: none;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.filter-section {
    margin-bottom: 20px;
    text-align: right;
}

#orderFilter {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s ease;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.order-date {
    color: #666;
    font-size: 0.9em;
}

.order-details {
    color: #444;
}

.order-details p {
    margin: 10px 0;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
}

.status.preparing {
    background-color: #fff3cd;
    color: #856404;
}

.status.out-for-delivery {
    background-color: #cce5ff;
    color: #004085;
}

.status.delivered {
    background-color: #d4edda;
    color: #155724;
}

.order-items {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.order-items li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.order-items li:last-child {
    border-bottom: none;
}

.no-orders {
    text-align: center;
    color: #666;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filter-section {
        text-align: left;
    }

    #orderFilter {
        width: 100%;
        margin-top: 5px;
    }
}

.auth-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 500px;
}

.auth-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.auth-message h2 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-message p {
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.auth-message .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.auth-message .btn:hover {
    transform: translateY(-2px);
}