.compiler-page {
    background: #f5f7fa;
}

.compiler-workspace {
    border-radius: 1rem;
}

.compiler-language-control {
    width: min(100%, 18rem);
}

.compiler-page .CodeMirror {
    min-height: 56vh;
    height: 56vh;
    border: 1px solid #495057;
    border-radius: .75rem;
    font-size: .95rem;
    line-height: 1.55;
}

.compiler-page .CodeMirror-focused {
    outline: 3px solid rgba(25, 135, 84, .25);
    outline-offset: 2px;
}

.compiler-result,
.compiler-error {
    padding: 1rem;
    border: 1px solid #d7dde3;
    border-radius: .75rem;
    background: #f8f9fa;
}

.compiler-result pre,
.compiler-error pre {
    min-height: 9rem;
    max-height: 20rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: .9rem;
}

.compiler-terminal {
    min-height: 12rem;
    max-height: 24rem;
    overflow: auto;
    padding: .9rem;
    border-radius: .6rem;
    background: #15191d;
    color: #f1f3f5;
}

.compiler-terminal pre {
    min-height: 8rem;
    max-height: none;
    overflow: visible;
    color: inherit;
}

.compiler-input-line {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: .65rem;
    border-top: 1px solid #495057;
}

.compiler-input-line .form-control {
    min-width: 8rem;
    border: 0;
    border-radius: .25rem;
    background: #212529;
    color: #fff;
    box-shadow: none;
    font-family: var(--bs-font-monospace);
}

.compiler-input-line .form-control::placeholder {
    color: #adb5bd;
}

.compiler-prompt {
    color: #75b798;
    font-family: var(--bs-font-monospace);
    font-weight: 700;
}

.compiler-error {
    border-color: #f1c2c6;
    background: #fff8f8;
}

.compiler-error pre {
    min-height: 0;
}

.compiler-page.is-running .CodeMirror,
.compiler-page.is-running select {
    opacity: .75;
}

@media (max-width: 767.98px) {
    .compiler-page .CodeMirror {
        min-height: 24rem;
        height: 58vh;
    }

    .compiler-result pre,
    .compiler-error pre {
        min-height: 7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .compiler-page * {
        scroll-behavior: auto !important;
    }
}
