.translate-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.translate-container h1 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 1.6rem;
}
.translate-container .desc {
    color: #6c757d;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}
.lang-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lang-row label {
    color: #495057;
    font-weight: 500;
}
.lang-row select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 140px;
}
.text-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.text-section label {
    color: #495057;
    font-weight: 500;
}
textarea {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 120px;
}
textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}
.translate-btn {
    padding: 12px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s;
}
.translate-btn:hover {
    background: #0056b3;
}
.translate-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}
.result-box {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    min-height: 80px;
    white-space: pre-wrap;
    word-break: break-word;
}
.result-box.empty {
    color: #6c757d;
}
.result-box.error {
    background: #fff5f5;
    border-color: #ffc9c9;
    color: #c92a2a;
}
.result-box.success {
    background: #f0f9ff;
    border-color: #a5d8ff;
}
