﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: black;
    color: white;
    font-family: monospace;
}

#tabs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    z-index: 1100;
    border-bottom: 1px solid #333;
}
#run-btn {
    background: #3a3a3a;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: monospace;
}

.tab {
    padding: 4px 10px;
    background: #2d2d2d;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

    .tab.active {
        background: #444;
        color: white;
    }


textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    background: black;
    color: white;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
}




#divider {
    height: 6px;
    background: #333;
    cursor: row-resize;
}




/* ===== TOPBAR ===== */
#topbar {
    position: fixed;
    top: 28px;
    left: 0;
    width: 100%;
    height: 36px;
    background: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    z-index: 1000;
    font-family: monospace;
}

.menu {
    position: relative;
}

.menu-button {
    background: #3a3a3a;
    color: #eee;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

    .menu-button:hover {
        background: #505050;
    }

.menu-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 220px;
    background: #3b3b3b;
    border: 1px solid #555;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,.6);
    display: none;
}

    .menu-dropdown div {
        padding: 8px 14px;
        cursor: pointer;
        color: #eee;
    }

        .menu-dropdown div:hover {
            background: #555;
        }

    .menu-dropdown hr {
        border: none;
        border-top: 1px solid #555;
        margin: 6px 0;
    }

/* LINKER BEREICH */
#left {
    width: 50%;
    display: flex;
}

#editor {
    width: 100%;
    height: 100%;
    resize: none;
    background: black;
    color: white;
    border: none;
    padding: 10px;
    font-family: monospace;
}

/* RECHTER BEREICH */
#right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

 #extra {
    flex: 1;
    background: #111;
    color: white;
    padding: 10px;
    overflow: auto;
    font-family: monospace;
}

/* DIVIDER */
#v-divider {
    width: 6px;
    cursor: col-resize;
    background: #333;
}

#h-divider {
    height: 6px;
    cursor: row-resize;
    background: #333;
}


#editor {
    width: 100%;
    height: 100%;
}


#highlight {
    z-index: 1;
    pointer-events: none;
}
/* Container unter Tabs + Topbar */
#container {
    position: absolute;
    top: 64px; /* Tabs + Topbar */
    left: 0;
    right: 0;
    bottom: 0;
}

/* Monaco Editor */
#editor {
    position: absolute;
    inset: 0;
}

/* SCHWEBENDE KONSOLE */
#console {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 120px;
    background: #111;
    border-top: 1px solid #333;

    display: flex;
    flex-direction: column;

    transition: height 0.2s ease;
}

/* Kopf der Konsole */

/* Pfeil-Button */


/* Output */


/* KEINE Seiten-Scrollbars */
html, body {
    overflow: hidden;
}

/* Container unter Tabs + Topbar */
#container {
    position: absolute;
    top: 64px; /* Tabs (28) + Topbar (36) */
    left: 0;
    right: 0;
    bottom: 0;
}

/* Monaco Editor füllt alles */
#editor {
    position: absolute;
    inset: 0;
}

/* SCHWEBENDE KONSOLE */
#console {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    min-height: 28px; /* Header bleibt immer sichtbar */
    background: #111;
    border-top: 1px solid #333;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: height 0.2s ease;
}


/* Kopf */
#console-header {
    height: 28px;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #333;
    font-size: 13px;
}

/* Pfeil */
#console-toggle {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
}

    #console-toggle:hover {
        color: white;
    }

/* Output */
#output {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
    white-space: pre-wrap;
}
@media (max-width: 768px) {

    .menu-button,
    #console-toggle,
    #run-btn {
        font-size: 15px;
        padding: 8px 12px;
        min-height: 36px;
    }

    .tab {
        font-size: 14px;
        padding: 6px 12px;
    }

    #output {
        font-size: 14px;
    }

    #console {
        height: 45%;
    }
}
#console {
    min-height: 28px;
    max-height: 80%;
}



/* ⚙️ Settings */
/* ===== TOP BAR ===== */
