/* Tracking Page Styles */

/* Pulse animation for current stage */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 128, 23, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(245, 128, 23, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 128, 23, 0);
    }
}

/* Tracking Section */
.tracking-section {
    padding: 100px 0 80px;
    min-height: 100vh;
    background: var(--light-bg);
}

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

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

/* Search Form */
.search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.search-form input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    border-radius: 50px;
    color: var(--text-dark);
}

.search-form input::placeholder {
    color: var(--text-light);
}

.search-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Tracking Result */
.tracking-result {
    display: none;
    max-width: 800px;
    margin: 2rem auto 0;
}

/* Info Card */
.tracking-info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.info-header h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Status Badge */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.status-badge.processing {
    background: #FCD9B0;
    color: #F58017;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-grid div {
    padding: 0.5rem 0;
}

.info-grid div span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.25rem;
}

.info-grid div strong {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Timeline Section */
.timeline-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.timeline-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.timeline-section h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

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

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

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

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

/* Timeline Marker */
.timeline-marker {
    position: absolute;
    left: -21px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    z-index: 1;
    transition: all 0.3s;
}

.timeline-item.completed .timeline-marker {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.timeline-item.current .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    animation: pulse 2s infinite;
}

/* Timeline Content */
.timeline-content h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

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

.timeline-date.pending {
    color: #f59e0b;
    font-style: italic;
}

/* Updates Section */
.updates-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.updates-section h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.updates-section h3 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

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

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

.update-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    min-width: 90px;
}

.update-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Error State */
.tracking-error {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tracking-error i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
    display: block;
}

.tracking-error h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tracking-error p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .tracking-header h1 {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tracking-info-card,
    .timeline-section,
    .updates-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tracking-section {
        padding: 80px 0 60px;
    }

    .tracking-header h1 {
        font-size: 1.75rem;
    }

    .search-form {
        flex-direction: column;
        border-radius: 15px;
        padding: 0.75rem;
    }

    .search-form input {
        border-radius: 10px;
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }

    .search-form button {
        border-radius: 10px;
        justify-content: center;
        padding: 0.875rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .update-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}
