html, body {
    min-height: 100%;
    margin: 0;
}

.wgc-container{
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.header-bar{

}

.header-left{

}

#sample-menu {
    display: flex;
    gap: 0.5rem;
}

.header-right{

}

.layout-toggle{

}

.layout-btn{

}

#compile-btn {

}

.view-layout-tabs {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

#tab-canvas, #tab-terminal {

}

#close-terminal-btn {
}

.workspace-area{
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 50px); /* Adjust based on header height */
}

.workspace-left-panel, .workspace-right-panel{
    flex: 1;
    position: relative;
    min-width: 0; /* Important for flex children to allow proper shrinking */;
    min-height: 0; /* Important for flex children to allow proper shrinking */
    display: flex;
    flex-direction: column;
}

.workspace-left-toolbar, .workspace-right-toolbar{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
}

.sample-toggle-container {
    display: flex;
}

.sample-toggle-btn{
    position: static;
    width: 2.5rem;
    z-index: 2;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 0.35rem;
}

.compile-button-container {
    display: flex;
}

.compile-btn{
    position: static;
    width: 2.5rem;
    z-index: 1;
    background: rgba(0,0,0,0.65);
    color: #2d8f2d;
    border: none;
    padding: 0.5rem;
    border-radius: 0.35rem;
}

#monaco-editor-container {
    flex: 1;
    display: flex;
    min-width: 0; /* Important for flex children to allow proper shrinking */
}

.split-handle{
    width: 1px;
    background-color: #999;
    cursor: col-resize;
    align-self: stretch;
}

.canvas-console-container{
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.canvas-container{
    flex: 1;
    min-height: 0;
    background-color: #c6c6c6;
    border: 1px solid var(--border-main);
    padding: 0;
    font-family: "Cascadia Code", Menlo, Monaco, Consolas,
                 "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.25rem;
    position: relative;
    overflow-y: hidden;
    box-sizing: border-box;
    color:#f0f0f0;
    white-space: pre-wrap;
}

#output-canvas {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block; /* Remove default inline spacing */
}

#console-output-container{
    flex: 1;
    min-height: 0;
    max-height: 50vh;
    background-color: #111214;
    border: 1px solid var(--border-main);
    padding: 1rem;
    font-family: "Cascadia Code", Menlo, Monaco, Consolas,
                 "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.25rem;
    overflow-y: auto;
    box-sizing: border-box;
    color:#f0f0f0;
    white-space: pre-wrap;
}

.layout-toggle-container{
    display: flex;
}

.layout-btn{
    z-index: 1;
    background: rgba(0,0,0,0.65);
    color: #989898;
    border: none;
    padding: 0.5rem;
    border-radius: 0.35rem;
}



