body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 30px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

.input-section, .output-section, .model-selector {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    background-color: #f9f9f9;
    min-height: 250px; /* Larger textarea height */
    height: 250px; /* Fixed initial height */
}

#english-prompt {
    background-color: #f0f8ff;
    direction: ltr; /* LTR for English text */
    text-align: left;
    font-family: monospace;
    unicode-bidi: plaintext;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f9f9f9;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 20px 0;
}

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

.status {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.loading {
    display: block;
    color: #3498db;
}

.error {
    display: block;
    color: #e74c3c;
}

.success {
    display: block;
    color: #2ecc71;
}

/* Larger textareas on bigger screens */
@media (min-width: 768px) {
    textarea {
        min-height: 300px;
        height: 300px;
    }
}