* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.controls {
    padding: 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.accuracy-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accuracy-control label {
    font-weight: 600;
    color: #334155;
}

#accuracySlider {
    width: 200px;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    outline: none;
    -webkit-appearance: none;
}

#accuracySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
}

#accuracySlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4f46e5;
    cursor: pointer;
    border: none;
}

.process-btn, .clear-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.process-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.process-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.clear-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

.clear-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.list-inputs {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.list-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-input label {
    font-weight: 600;
    color: #334155;
    font-size: 1.1rem;
}

.list-input textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.list-input textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.list-input textarea::placeholder {
    color: #94a3b8;
}

.results {
    padding: 30px;
    background: #f8fafc;
}

.matches-container {
    margin-bottom: 30px;
}

.matches-container h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.matches-list {
    display: grid;
    gap: 10px;
}

.match-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.match-item.potential {
    border-left-color: #f59e0b;
}

.match-item .match-text {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.match-item .match-details {
    font-size: 0.9rem;
    color: #64748b;
}

.match-score {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.match-score.potential {
    background: #f59e0b;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .controls {
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-inputs {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .list-input textarea {
        height: 200px;
    }
    
    .results {
        padding: 20px;
    }
}
