.process-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
}

.process-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.process-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.process-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.process-btn:hover::before {
    left: 100%;
}

.process-btn:active {
    transform: translateY(-1px);
}

.process-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.process-btn:disabled::before {
    display: none;
}

.btn-icon {
    font-size: 1.1em;
}

.btn-text {
    font-weight: 600;
}

.btn-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive adjustments for button */
@media (max-width: 768px) {
    .process-btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 30px;
        font-size: 1.1em;
    }
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.upload-area:hover {
    border-color: #5a67d8;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area.dragover {
    border-color: #4c51bf;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25);
}

.upload-area h3 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

.upload-area p {
    color: #666;
    font-size: 1em;
    margin: 0;
}

.upload-icon {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 15px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Processing Mode Selector */
.processing-mode-selector {
    margin-bottom: 30px;
    text-align: center;
}

.processing-mode-selector h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.mode-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.mode-card:hover::before {
    opacity: 1;
}

.mode-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.mode-card.active::before {
    opacity: 1;
}

.mode-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.mode-card h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.mode-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Processing Modes */
.processing-mode {
    transition: all 0.3s ease;
}

.processing-mode.hidden {
    display: none;
}

/* Single Item Form */
.single-item-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.single-item-form h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.single-item-form p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Quick Examples */
.quick-examples {
    margin-top: 20px;
}

.quick-examples h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.example-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.example-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.example-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* AI Tips */
.ai-tips {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #2196f3;
}

.ai-tips h4 {
    color: #1565c0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: #1565c0;
}

.tip-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Selected Files Section */
.selected-files-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.selected-files h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.file-list {
    margin-bottom: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.file-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.file-info {
    flex: 1;
}

.file-info strong {
    display: block;
    color: #333;
    margin-bottom: 3px;
    font-size: 0.95em;
}

.file-info small {
    color: #666;
    font-size: 0.8em;
}

.remove-file {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    font-size: 0.9em;
}

.remove-file:hover {
    background: #fee;
}

.file-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.select-more-btn,
.clear-files-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.select-more-btn {
    background: #667eea;
    color: white;
}

.select-more-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.clear-files-btn {
    background: #dc3545;
    color: white;
}

.clear-files-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Results Section */
.results-section {
    margin-top: 30px;
    animation: slideInUp 0.5s ease-out;
}

.results-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.results-content h3 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.results-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.85em;
    line-height: 1.4;
    border: 1px solid #e9ecef;
}

/* Enhanced Price Tolerance Dropdown Styles */
.config-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.config-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.config-item {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.config-item label {
    display: block;
    font-size: 1.3em;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.config-select {
    width: 100%;
    padding: 16px 20px;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.config-select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.config-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.config-select option {
    font-size: 1em;
    font-weight: 700;
    padding: 10px;
    color: #333;
}

.config-item small {
    display: block;
    margin-top: 12px;
    font-size: 1em;
    font-weight: 700;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    text-align: left;
    line-height: 1.4;
}

/* Add option for 25% and 30% tolerance */
.config-select option[value="25"],
.config-select option[value="30"] {
    color: #dc3545;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mode-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mode-card {
        padding: 20px 15px;
    }
    
    .mode-icon {
        font-size: 2em;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .single-item-form {
        padding: 20px 15px;
    }
    
    .example-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .example-btn {
        width: 200px;
        padding: 10px 16px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }
    
    .file-info {
        width: 100%;
    }
    
    .remove-file {
        align-self: flex-end;
        margin-top: -30px;
    }
    
    .file-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .select-more-btn,
    .clear-files-btn {
        width: 200px;
    }

    /* Mobile config panel */
    .config-panel {
        padding: 20px;
        margin: 20px 0;
    }
    
    .config-item label {
        font-size: 1.1em;
    }
    
    .config-select {
        padding: 14px 18px;
        font-size: 1em;
        background-size: 18px;
        background-position: right 12px center;
    }
    
    .config-item small {
        font-size: 0.95em;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .config-select {
        padding: 12px 16px;
        font-size: 0.95em;
        background-size: 16px;
        background-position: right 10px center;
    }
}