/* Scrape Tool - Wizard Layout */

.scrape-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.scrape-container h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

/* Progress Indicator */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.progress-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecf0f1;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.progress-step.active .progress-dot {
    background: #3498db;
    color: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.progress-step.complete .progress-dot {
    background: #27ae60;
    color: white;
}

.progress-step span {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
}

.progress-step.active span {
    color: #2c3e50;
    font-weight: 600;
}

.progress-line {
    width: 100px;
    height: 2px;
    background: #ecf0f1;
    margin: 0 10px;
    margin-bottom: 28px;
}

/* Step Panels */
.step-panel {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-panel h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #34495e;
}

.step-description {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 15px;
}

/* Step 1: Input */
#protocol-text {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

#protocol-text:focus {
    outline: none;
    border-color: #3498db;
}

/* Step 2: Processing */
.status-list {
    padding: 20px 0;
}

.status-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 15px;
    color: #2c3e50;
}

.status-icon {
    font-size: 20px;
    margin-right: 12px;
    animation: spin 1s linear infinite;
}

.status-icon.complete {
    color: #27ae60;
    animation: none;
    font-size: 24px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Step 3: Results */
.completion-badge {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    margin-bottom: 25px;
    color: #155724;
    font-weight: 500;
}

.completion-badge .status-icon {
    margin-right: 12px;
    animation: none;
}

#step3-panel h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
}

#steps-container {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

#steps-container ol {
    padding-left: 25px;
    margin: 0;
}

#steps-container li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #2c3e50;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .wizard-progress {
        flex-direction: column;
    }
    
    .progress-line {
        width: 2px;
        height: 40px;
        margin: 10px 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}
