/* Application layout styles */
:root {
    --editor-min-height: 520px;
}

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

body {
    background: #f6f8fb;
}

.min-width-0 {
    min-width: 0;
}

.app-header {
    backdrop-filter: blur(10px);
}

.brand-icon {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: .65rem;
    background: #f7df1e;
    color: #111;
    font-size: 1.55rem;
}

.language-select {
    width: auto;
    min-width: 154px;
}

.toolbar-card,
.editor-card {
    border: 0;
}

.code-editor {
    width: 100%;
    min-height: var(--editor-min-height);
    resize: vertical;
    padding: 1rem;
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .9rem;
    line-height: 1.55;
    tab-size: 4;
    white-space: pre;
    overflow: auto;
    background: #fff;
}

.code-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(13, 110, 253, .18);
}

.processing-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .88);
}

.mode-switch .btn {
    min-width: 125px;
}

.settings-group .form-text {
    line-height: 1.45;
}

#techToggle[aria-expanded="true"] .tech-chevron {
    transform: rotate(180deg);
}

.tech-chevron {
    transition: transform .2s ease;
}

.toast-like {
    border-left: 4px solid currentColor;
}

@media (max-width: 1199.98px) {
    :root {
        --editor-min-height: 360px;
    }
}

@media (max-width: 767.98px) {
    body {
        background: #fff;
    }

    .container-fluid {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    .toolbar-card,
    .editor-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6;
    }

    .toolbar-card .card-body > .d-flex > * {
        flex: 1 1 auto;
    }

    .toolbar-card .btn,
    .mode-switch {
        min-height: 44px;
    }

    .mode-switch {
        width: 100%;
    }

    .mode-switch .btn {
        min-width: 0;
    }

    .language-select {
        max-width: 170px;
        min-width: 140px;
    }

    .code-editor {
        min-height: 310px;
        padding: .8rem;
        font-size: .86rem;
    }

    .editor-card .card-header {
        padding: .65rem .75rem;
    }

    footer .collapse:not(.show) {
        display: none;
    }
}

@media (max-width: 420px) {
    .app-header .btn span {
        display: none !important;
    }

    .language-select {
        max-width: 158px;
        min-width: 132px;
    }

    .toolbar-card .btn {
        font-size: .88rem;
        padding-left: .65rem;
        padding-right: .65rem;
    }

    :root {
        --editor-min-height: 285px;
    }
}
