* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.section h2 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.upload-area {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.file-input {
    padding: 8px 12px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.config-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-section select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.results-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 200px;
}

.result-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    transition: transform 0.2s;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.result-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.score-badge {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.faq-id {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}

.result-title {
    font-size: 1.3em;
    color: #333;
    margin: 10px 0;
    font-weight: 600;
}

.result-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-url {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.result-url:hover {
    text-decoration: underline;
}

.status-message {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.status-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.success-message {
    color: #28a745;
    font-size: 0.9em;
    margin-top: 10px;
}

.loading {
    color: #007bff;
}

@media (max-width: 768px) {
    .upload-area {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header h1 {
        font-size: 2em;
    }
}