.vin-scan-container {
    max-width: 800px;
    margin: 4rem auto;
    margin-top:6rem;
    padding: 2.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vin-scan-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    position: relative;
}

.vin-scan-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.5s ease-out;
}

.vin-scan-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.vin-scan-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.vin-scan-text {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 600;
}

.vin-scan-steps-wrapper {
    overflow: hidden;
    border-radius: 0.75rem;
    height: 80px; /* Fixed height for single step */
}

.vin-scan-steps {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
}

.vin-scan-step {
    flex: 0 0 80px; /* Fixed height matching wrapper */
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-left: 4px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.vin-scan-step.vin-scan-active {
    opacity: 1;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.vin-scan-step.vin-scan-complete {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.vin-scan-step.vin-scan-error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.vin-scan-step i {
    width: 24px;
    height: 24px;
    color: #64748b;
    transition: color 0.3s ease;
}

.vin-scan-step.vin-scan-complete i {
    color: #10b981;
}

.vin-scan-step.vin-scan-error i {
    color: #ef4444;
}

.vin-scan-step span {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.vin-scan-step-status {
    font-size: 0.875rem;
    color: #64748b;
    transition: color 0.3s ease;
}

.vin-scan-step.vin-scan-complete .vin-scan-step-status {
    color: #059669;
}

.vin-scan-step.vin-scan-error .vin-scan-step-status {
    color: #dc2626;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .vin-scan-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .vin-scan-text {
        font-size: 1rem;
    }
}