body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #007bff;
}

.code-editor {
    display: flex;
    flex-direction: column;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

#formatBtn {
    background-color: #007bff;
    color: #fff;
}

#formatBtn:hover {
    background-color: #0056b3;
}

#clearBtn {
    background-color: #dc3545;
    color: #fff;
}

#clearBtn:hover {
    background-color: #c82333;
}

pre {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

#jsonOutput {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
}
