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

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.controls button {
    padding: 10px 18px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.controls button:hover {
    background-color: #222;
}
.editor-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.editor-box {
    flex: 1;
    min-width: 540px;
    max-width: 570px;
    background-color: #fefefe;
    border: 2px solid #ddd;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.editor-box:hover {
    border-color: #000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}
.editor-header {
    background-color: #000;
    color: white;
    padding: 12px 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.editor-tools i {
    margin-left: 12px;
    cursor: pointer;
}
.editor-tools i:hover {
    color: #f0e68c;
}
#input-editor, #output-editor {
    height: 400px; /* Increased height to make the boxes taller */
    width: 100%;
    min-height: 300px; /* Ensure minimum height is set to avoid collapsing */
}
@media (max-width: 768px) {
    .editor-row {
        flex-direction: column;
        gap: 20px;
    }
    .editor-box {
        max-width: 100%; /* Ensures the boxes occupy the full width on smaller screens */
        min-width: 100%;
    }
}