body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    color: #2c3e50;
}

.input-section, .results-section, .error-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-label {
    display: block;
    padding: 10px;
    background: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

#fileInput {
    display: none;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    transition: opacity 0.3s;
}

textarea:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover:not(:disabled) {
    background: #2980b9;
}

button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.results-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: auto;
}

.results-box h1, .results-box h2, .results-box h3 {
    color: #2c3e50;
    margin-top: 0.5em;
}

.results-box table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.results-box th, .results-box td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.results-box th {
    background-color: #f2f2f2;
}

.error-section {
    background: #ffebee;
    color: #d32f2f;
}

.download-btn {
    background: #27ae60;
    margin-top: 10px;
}

.download-btn:hover:not(:disabled) {
    background: #219653;
}

#uploadStatus {
    padding: 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}
