body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f9;
    color: #333;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
}

h2 {
    font-size: 1.8em;
    color: #34495e;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-top: 40px;
}

main {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

input[type="file"] {
    flex-grow: 1;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    resize: vertical;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #3498db;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#upload-status, #job-status {
    margin-top: 10px;
    font-style: italic;
}

#loader {
    text-align: center;
    margin: 40px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

#report-section {
    margin-top: 30px;
}

#match-score {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

#keywords-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.keywords-box {
    flex: 1;
    background: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
}

.keywords-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

.keywords-box ul {
    list-style-type: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.keywords-box li {
    background: #fff;
    margin-bottom: 5px;
    padding: 8px;
    border-radius: 3px;
}

.copy-btn {
    float: right;
    background-color: #95a5a6;
    padding: 5px 10px;
    font-size: 0.8em;
}

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

#detailed-report table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#detailed-report th, #detailed-report td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#detailed-report th {
    background-color: #3498db;
    color: white;
}

#detailed-report tr:nth-child(even) {
    background-color: #f2f2f2;
}