body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #f4f4f9;
    scroll-behavior: smooth;
}

.section {
    height: 100vh;
    width: 100%;
    position: relative;
}

.chart-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.editor-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

canvas {
    max-width: 90%;
    max-height: 75%;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

textarea {
    width: 90%;
    height: 80vh;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.editor-section header {
    margin-top: 20px;
}

/* Ensure CodeMirror editor matches the original textarea size */
.CodeMirror {
    width: 90%;
    height: 80vh;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}



/* Tooltip styling */
.tooltip {
    display: inline-block;
    visibility: hidden;
    min-width: 175px;
    max-width: 250px;
    height: auto;
    padding: 10px 15px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

button:hover + .tooltip {
    visibility: visible;
    opacity: 1;
}