* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #1e1e1e;
    color: #f4f4f4;
}

/* Sidebar Styles */
#gsidebar {
    width: 250px;
    background-color: #252526;
    overflow: hidden;
}

/* Resizer Handle */
#gsidebarresizerhandle {
    width: 6px;
    cursor: col-resize;
    background-color: #333;
    transition: background-color 0.2s;
}

#gsidebarresizerhandle:hover, #gsidebarresizerhandle:active {
    background-color: #007acc; /* Visual cue when dragging */
}

/* Main Content & Editor Layout */
#viewport {
    flex: 1;
    display: flex;
    background-color: #1e1e1e;
}

.editor-container {
    display: flex;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.5;
}

#line-numbers {
    width: 30px;
    padding: 0px 0px 0px 0;
    text-align: right;
    color: #858585;
    background-color: #0f0f0f;
    user-select: none;
    overflow: hidden;
    white-space: pre;
}

#text-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    resize: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    overflow: auto;
    white-space: pre;
}

.tooltip {
    position: fixed; /* Keeps it relative to the viewport browser window */
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none; /* Prevents the tooltip itself from triggering mouse events */
    z-index: 1000; /* Makes sure it sits on top of other elements */
}

