html,
body {
    height: 100vh;
    font-family: sans-serif;
}

#split-container {
    overflow: hidden;
}

.split {
    display: flex;
}

#editor-pane,
#panel-pane {
    min-height: 0; /* Fixes vertical scrolling in flex items */
}

.gutter {
    background-repeat: no-repeat;
    background-position: 50%;
    background-color: #374151;
    transition: background-color 0.2s ease;
}

.gutter.gutter-horizontal {
    cursor: col-resize;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
}

.gutter.gutter-horizontal:hover {
    background-color: #2563EB;
}

#output {
    flex-grow: 1;
    white-space: pre;
    overflow: auto;
    min-width: 0;
    padding: 0 1rem 1rem 1rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    padding: 0.75rem 1rem 0.5rem 1rem;
}

.CodeMirror {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    font-family: 'Cascadia Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
    padding: 0 1rem 1rem 1rem;
}

.CodeMirror-gutters {
    padding-left: 0;
    padding-right: 1.2em;
}

/* --- CUSTOM SCROLLBAR STYLES --- */
/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #4f4f4f;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #6a6a6a;
}

/* --- FINAL FIX: Hide the scrollbar corner completely --- */
::-webkit-scrollbar-corner {
    display: none;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #4f4f4f transparent;
}

/* --- The rest of the file is unchanged --- */
.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
}

@keyframes spin-reverse {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.animate-spin-reverse {
    animation: spin-reverse 1s linear infinite;
}