body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    background: #fff;
}

.search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    border: none;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #0096cc);
}

.timeline {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    position: relative;
    padding: 40px 15px;
    margin: 20px 0;
    gap: 30px;
    scrollbar-width: thin;
    scrollbar-color: #007bff #e0e0e0;
}

.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    height: 4px;
    background: linear-gradient(90deg, #d3d3d3, #a0a0a0);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    min-width: 120px;
    width: 120px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.timeline-step .step-icon {
    width: 45px;
    height: 45px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin: 0 auto;
}

.timeline-step.completed .step-icon {
    animation: pulse 1.5s infinite;
}

.timeline-step.step-0.completed .step-icon { background: linear-gradient(45deg, #007bff, #00d4ff); }
.timeline-step.step-1.completed .step-icon { background: linear-gradient(45deg, #28a745, #34c759); }
.timeline-step.step-2.completed .step-icon { background: linear-gradient(45deg, #ffc107, #ffca28); }
.timeline-step.step-3.completed .step-icon { background: linear-gradient(45deg, #dc3545, #ff4d4f); }
.timeline-step.step-4.completed .step-icon { background: linear-gradient(45deg, #6f42c1, #8a4af3); }
.timeline-step.step-5.completed .step-icon { background: linear-gradient(45deg, #17a2b8, #2bc4d9); }

.timeline-step i {
    font-size: 1.1rem;
}

.timeline-step .step-label {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    max-width: 110px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.2;
}

.timeline-step .step-date {
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #555;
    max-width: 110px;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
}

.result-container {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #e0e0e0;
}

.result-container::-webkit-scrollbar {
    width: 8px;
}

.result-container::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.result-container::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.result-item.card {
    max-width: 900px;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease;
    padding: 15px;
}

.result-item.card:hover {
    transform: translateY(-3px);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 10px;
        gap: 15px;
        overflow-x: hidden;
    }

    .timeline::before {
        left: 20px;
        width: 4px;
        height: 100%;
        top: 0;
        bottom: 0;
        background: linear-gradient(180deg, #d3d3d3, #a0a0a0);
    }

    .timeline-step {
        margin: 10px 0;
        min-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 35px;
        position: relative;
    }

    .timeline-step .step-icon {
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: absolute;
        left: 0;
        top: 0;
    }

    .timeline-step .step-date {
        margin: 0 0 5px 0;
        font-size: 0.75rem;
        color: #666;
        max-width: 65vw;
        text-align: left;
    }

    .timeline-step .step-label {
        margin: 0;
        font-size: 0.8rem;
        max-width: 65vw;
        text-align: left;
    }

    .result-item.card {
        margin: 0 8px 12px;
        padding: 10px;
    }

    .result-item .row {
        flex-direction: column;
        gap: 8px;
    }

    .result-item .col-md-6 {
        width: 100%;
        margin-bottom: 8px;
    }

    .result-container {
        max-height: 500px;
    }
}