body {
    background: #f4f6f8;
}

.toolbar .filename-group {
    width: auto;
    flex: 0 1 22rem;
}

.toolbar .filename-group input {
    font-family: var(--bs-font-monospace);
}

/* Ο editor καταλαμβάνει όλο το διαθέσιμο ύψος της οθόνης στις μεγάλες οθόνες */
.CodeMirror {
    height: calc(100vh - 15rem);
    min-height: 22rem;
    font-size: 14px;
    font-family: var(--bs-font-monospace);
    border-bottom-left-radius: var(--bs-card-inner-border-radius);
    border-bottom-right-radius: var(--bs-card-inner-border-radius);
}

.CodeMirror-activeline-background {
    background: #eef4ff;
}

.cm-error-line {
    background: #fde2e1 !important;
}

.console {
    min-height: 8rem;
    max-height: 40vh;
    overflow: auto;
    padding: .75rem;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    background: #1e1e1e;
    color: #e6e6e6;
}

.console-error {
    min-height: 4rem;
    background: #fff5f5;
    color: #a4161a;
}

/* Λαβή αλλαγής ύψους των παραθύρων εξόδου (ποντίκι, αφή, πληκτρολόγιο) */
.resize-handle {
    height: 12px;
    cursor: ns-resize;
    touch-action: none;
    background: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
    border-bottom-left-radius: var(--bs-card-inner-border-radius);
    border-bottom-right-radius: var(--bs-card-inner-border-radius);
    position: relative;
}

.resize-handle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    width: 40px;
    height: 3px;
    margin-left: -20px;
    border-top: 1px solid #9aa4ae;
    border-bottom: 1px solid #9aa4ae;
}

.resize-handle:hover,
.resize-handle:focus-visible,
.resize-handle.active {
    background: #dbe7ff;
    outline: none;
}

.stdin-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    background: #2b2b2b;
}

.stdin-row .prompt {
    color: #9cdcfe;
    font-family: var(--bs-font-monospace);
    font-size: 13px;
    white-space: pre;
}

.stdin-row input {
    font-family: var(--bs-font-monospace);
}

#turtleCanvas canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--bs-border-color);
}

/* Κινητά τηλέφωνα: μικρότερος editor, ώστε να φαίνεται και η έξοδος */
@media (max-width: 991.98px) {
    .CodeMirror {
        height: 50vh;
        min-height: 16rem;
    }

    .toolbar .filename-group {
        flex: 1 1 100%;
    }
}
