/* ============================================
   Mediso India — Tracking Page Styles
   ============================================ */

.tracking-result {
    display: none;
}

.tracking-result.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.not-found-screen {
    display: none;
    text-align: center;
    padding: 48px 24px;
    background: var(--mediso-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.not-found-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.not-found-screen.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Track Card */
.track-card {
    background: var(--mediso-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    margin-bottom: 20px;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.track-id-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mediso-gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-id-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--mediso-blue);
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
}

.track-status-badge {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.track-status-badge.placed {
    background: var(--mediso-orange-light);
    color: var(--mediso-orange);
}

.track-status-badge.verified {
    background: #dbeafe;
    color: var(--mediso-accent);
}

.track-status-badge.packed {
    background: #ede9fe;
    color: #7c3aed;
}

.track-status-badge.dispatched {
    background: #fef3c7;
    color: #d97706;
}

.track-status-badge.delivered {
    background: var(--mediso-green-light);
    color: var(--mediso-green);
}

.track-status-badge.cancelled {
    background: var(--mediso-red-light);
    color: var(--mediso-red);
}

.track-status-badge.paymentPending {
    background: #fef3c7;
    color: #b45309;
}

.track-status-badge.paymentReceived {
    background: #d1fae5;
    color: #059669;
}

/* Pay Now Card & Price Breakdown */
.pay-now-card {
    border: 2px solid #3b82f6;
    background: #eff6ff;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #374151;
}

.price-line span:first-child {
    font-weight: 500;
}

.price-line span:last-child {
    font-weight: 600;
}

.price-line.discount span {
    color: #ef4444;
}

.price-divider {
    height: 1px;
    background: #bfdbfe;
    margin: 8px 0;
}

.price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.price-total-label {
    font-size: 15px;
    font-weight: 800;
    color: #1e3a5f;
}

.price-total-value {
    font-size: 22px;
    font-weight: 800;
    color: #059669;
}

.pay-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.pay-now-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Status Stepper */
.status-stepper {
    position: relative;
    padding-left: 20px;
}

.status-stepper::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: var(--mediso-gray-200);
    border-radius: 2px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    position: relative;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step.active .step-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mediso-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    color: var(--mediso-gray-500);
}

.step-dot svg {
    width: 16px;
    height: 16px;
}

.step.completed .step-dot svg {
    color: var(--mediso-green);
}

.step.active .step-dot svg {
    color: var(--mediso-accent);
}

.step.completed .step-dot {
    background: var(--mediso-green-light);
}

.step.active .step-dot {
    background: #dbeafe;
}

.step-info {
    padding-top: 6px;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--mediso-gray-800);
}

.step-time {
    font-size: 12px;
    color: var(--mediso-gray-500);
    margin-top: 2px;
}

/* Track Details */
.track-details {
    margin-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--mediso-gray-100);
}

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

.detail-label {
    font-size: 14px;
    color: var(--mediso-gray-500);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--mediso-gray-800);
    text-align: right;
    max-width: 60%;
}

.track-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Live indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mediso-green);
    font-weight: 600;
    margin-top: 4px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--mediso-green);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@media (max-width: 640px) {
    .track-card {
        padding: 20px;
    }

    .track-id-value {
        font-size: 16px;
    }

    .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .detail-value {
        text-align: left;
        max-width: 100%;
    }
}