﻿/* Track Order Page Styles */

.track-page-container {
        max-width: 800px;
        margin: 4rem auto;
        padding: 0 1rem;
}

.track-card {
        padding: 3rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.track-header h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #fff;
}

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

.track-form {
        margin-bottom: 3rem;
}

.search-input-wrapper {
        display: flex;
        gap: 1rem;
        background: rgba(0, 0, 0, 0.2);
        padding: 0.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 0.75rem 1rem;
        color: #fff;
        font-size: 1.1rem;
        outline: none;
}

.btn-track {
        background: var(--accent);
        color: #000;
        border: none;
        padding: 0 2rem;
        border-radius: 8px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
}

.btn-track:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.error-msg {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        border: 1px solid rgba(239, 68, 68, 0.2);
        margin-bottom: 2rem;
}

.info-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item label {
        display: block;
        font-size: 0.8rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        margin-bottom: 0.5rem;
}

.info-item strong {
        font-size: 1.2rem;
        color: #fff;
}

.stepper {
        display: flex;
        justify-content: space-between;
        position: relative;
        margin-bottom: 4rem;
}

.stepper::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 10%;
        right: 10%;
        height: 3px;
        background: rgba(255, 255, 255, 0.1);
        z-index: 0;
}

.step {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
}

.step-icon {
        width: 50px;
        height: 50px;
        background: #1a1f2e;
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s;
}

.step.active .step-icon {
        border-color: var(--accent);
        background: rgba(99, 102, 241, 0.2);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.step-label {
        font-size: 0.85rem;
        color: var(--text-secondary);
        font-weight: 600;
}

.step.active .step-label {
        color: #fff;
}

.shipment-logs h3 {
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
}

.log-item {
        display: flex;
        gap: 2rem;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-date {
        min-width: 140px;
        color: var(--text-secondary);
        font-size: 0.9rem;
}

.log-content strong {
        display: block;
        margin-bottom: 0.5rem;
        color: #fff;
}

.log-content p {
        color: var(--text-secondary);
        font-size: 0.95rem;
}

.status-badge {
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 700;
}

.status-preparing {
        background: rgba(148, 163, 184, 0.2);
        color: #94a3b8;
}

.status-on_the_way {
        background: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
}

.status-out_for_delivery {
        background: rgba(245, 158, 11, 0.2);
        color: #f59e0b;
}

.status-delivered {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
}

@media (max-width: 600px) {
        .info-grid {
                grid-template-columns: 1fr;
        }

        .stepper {
                flex-direction: column;
                align-items: flex-start;
                gap: 2rem;
        }

        .stepper::before {
                display: none;
        }

        .step {
                flex-direction: row;
                width: 100%;
        }
}