.converter-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 800px) {
    .converter-box {
        flex-direction: row;
        align-items: stretch;
    }
}

.input-area,
.output-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.area-header label {
    font-weight: bold;
    color: #333;
}

textarea {
    width: 100%;
    height: 400px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    box-sizing: border-box;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

textarea:focus {
    outline: none;
    border-color: #2196f3;
}

.action-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

@media (min-width: 800px) {
    .action-area {
        flex-direction: column;
        justify-content: center;
        width: 100px;
    }
}

.btn-file {
    font-size: 0.8rem;
    cursor: pointer;
    color: #2196f3;
}

.btn-file:hover {
    text-decoration: underline;
}

.btn-file input {
    display: none;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.2s;
}

.btn-primary {
    background: #2196f3;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #1976d2;
}

.btn-secondary {
    background: #4caf50;
    color: white;
    font-size: 0.8rem;
    padding: 6px 12px;
}

.btn-secondary:hover {
    background: #388e3c;
}

.btn-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-text {
    background: none;
    color: #666;
    font-size: 0.8rem;
}

.btn-text:hover {
    color: #333;
    text-decoration: underline;
}