/* 🛰️ GoPedidus - Public Tracking Page Styles */

:root {
    --primary: #f15a24;
    --success: #10b981;
    --cancel: #ef4444;
    --bg-dark: #030712;
    --card-glass: rgba(15, 23, 42, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
}

.tracking-page {
    padding: 140px 15px 60px;
    min-height: 100%;
    position: relative;
    z-index: 5;
}

.tracking-card {
    background: var(--card-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    color: white;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.search-section h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.search-box input {
    flex: 1;
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-box button {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: #d44d1d;
    transform: scale(1.03);
}

.order-header {
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 35px;
    padding-bottom: 25px;
}

.order-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Outfit';
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 5px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border-glass);
    z-index: 1;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 20px;
    padding-bottom: 35px;
    opacity: 0.25;
    transition: 0.5s;
    z-index: 2;
}

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

.timeline-icon {
    width: 32px;
    height: 32px;
    background: #1e293b;
    border: 2px solid #030712;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.active .timeline-icon {
    background: var(--success);
    color: white;
    border-color: #064e3b;
}

.current .timeline-icon {
    background: var(--primary);
    border-color: #7c2d12;
    animation: pulse-glow-orange 2s infinite;
    color: white !important;
}

@keyframes pulse-glow-orange {
    0% { box-shadow: 0 0 0 0 rgba(241, 90, 36, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(241, 90, 36, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 90, 36, 0); }
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.active .timeline-content {
    border-color: var(--border-glass);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.timeline-header h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 700;
    color: #fff;
}

.time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(241, 90, 36, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
}

.live-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 99px;
    margin-top: 15px;
    text-transform: uppercase;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sla-badge {
    font-size: 0.7rem;
    color: var(--success);
    font-weight: 800;
    background: rgba(16, 185, 129, 0.08);
    padding: 3px 10px;
    border-radius: 99px;
    margin-top: 8px;
    display: inline-block;
}

@media (max-width: 600px) {
    .tracking-page {
        padding: 100px 10px 40px;
    }
    .tracking-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    .search-section h1 {
        font-size: 1.8rem;
    }
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .time {
        font-size: 0.75rem;
    }
}
