* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #0b0d10;
    color: #e8eaed;
    font-family: Arial, sans-serif;

    display: flex;
    flex-direction: column;
}


/* =========================
   TOP BAR
   ========================= */

.topbar {
    height: 64px;
    background: #111419;
    border-bottom: 1px solid #242932;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    color: #8b919c;
    font-size: 13px;
}


/* =========================
   RUN BUTTON
   ========================= */

.run-button {
    border: none;
    border-radius: 7px;

    padding: 9px 18px;

    background: #e8eaed;
    color: #111419;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.run-button:hover {
    background: #ffffff;
}

.run-button:active {
    transform: scale(0.97);
}


/* =========================
   WORKSPACE
   ========================= */

.workspace {
    flex: 1;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 1px;

    background: #242932;
}


/* =========================
   PANELS
   ========================= */

.panel {
    min-width: 0;
    background: #0b0d10;

    display: flex;
    flex-direction: column;
}

.panel-header {
    height: 42px;

    padding: 0 14px;

    background: #111419;
    border-bottom: 1px solid #242932;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #aeb4bf;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.7px;
}

.file-name {
    color: #6f7682;
    font-weight: 400;
}


/* =========================
   CODE EDITOR
   ========================= */

#codeEditor {
    flex: 1;

    width: 100%;

    resize: none;
    outline: none;
    border: none;

    background: #0b0d10;
    color: #e8eaed;

    padding: 18px;

    font-family: "Consolas", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.6;

    tab-size: 4;
}

#codeEditor::placeholder {
    color: #4f5661;
}


/* =========================
   OUTPUT
   ========================= */

#output {
    flex: 1;

    margin: 0;
    padding: 18px;

    overflow: auto;

    color: #d9dde3;

    font-family: "Consolas", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;

    white-space: pre-wrap;
    word-break: break-word;
}


/* =========================
   CLEAR BUTTON
   ========================= */

.clear-button {
    border: none;
    background: transparent;

    color: #737b87;

    cursor: pointer;
    font-size: 12px;
}

.clear-button:hover {
    color: #d9dde3;
}


/* =========================
   STATUS BAR
   ========================= */

.statusbar {
    height: 30px;

    padding: 0 14px;

    background: #111419;
    border-top: 1px solid #242932;

    color: #707783;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 11px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .workspace {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .topbar {
        padding: 0 14px;
    }

    .brand-subtitle {
        display: none;
    }

    #codeEditor {
        font-size: 14px;
    }
}