html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- Small, self-contained UI polish --- */
.codebox {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    white-space: pre;
    overflow: auto;
    border-radius: .5rem;
    background: #0b0d10;
    color: #e6edf3;
}

.code-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    resize: vertical;
    min-height: 220px;
    line-height: 1.4;
}

.badge-diff {
    background: #e9ecef;
    color: #495057;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.kbd {
    padding: .1rem .35rem;
    border: 1px solid #ced4da;
    border-bottom-width: 2px;
    border-radius: .25rem;
    background: #f8f9fa;
    font-size: .85em;
}

.small-muted {
    font-size: .9rem;
    color: #6c757d;
}

.details-muted summary {
    cursor: pointer;
    color: #6c757d;
}

@media (min-width: 992px) {
    .two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        align-items: start;
    }
}

/* Re-use the clean look from Index */

.dropzone {
    border: 2px dashed #6c757d;
    border-radius: .75rem;
    padding: 1.25rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    transition: background .15s ease, border-color .15s ease;
}

    .dropzone.dragover {
        background: #e9f5ff;
        border-color: #0d6efd;
    }



.spinner {
    display: none;
    width: 1.1rem;
    height: 1.1rem;
    border: .15rem solid #fff;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .65s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Let grid children shrink instead of expanding the whole grid */
.two-col > div {
    min-width: 0;
}

/* Fixed-size output with horizontal scroll, no width growth */
.fixed-out {
    height: 459px;
    min-height: 459px;
    max-height: 459px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: pre; /* always no wrap now */
    overflow-x: auto;
    overflow-y: auto;
    word-break: normal;
    overflow-wrap: normal;
    /* keep layout stable when scrollbars appear */
    scrollbar-gutter: stable both-edges;
}

/* Make sure the code block itself never expands beyond its container */
#outPre.fixed-out {
    width: 100% !important;
    max-width: 100% !important;
}

#diagsDetails summary {
    display: flex;
    align-items: center;
}

/* Active badge outline */
.badge-filter.active {
    outline: 2px solid currentColor;
    box-shadow: 0 0 0 2px rgba(0,0,0,.05) inset;
}

#diagAll {
    color: #333;
}
/* neutral look */

.fixed-out {
    white-space: pre; /* no wrapping */
    overflow-x: auto; /* horizontal scroll if needed */
    overflow-y: auto;
    min-height: 260px;
    max-height: 60vh;
}

/* Highlight colors that work in light/dark */
#outPre mark.sql-hit {
    padding: 0 .15em;
    border-radius: .2rem;
}

#outPre mark.sql-current {
    outline: 1px solid currentColor;
}

#outPre {
    display: none;
}

/* Light defaults */
:root {
    --page-bg: #fff;
    --page-fg: #212529;
    --codebox-bg: #f8f9fa;
    --codebox-fg: #212529;
    --toolbar-bg: #fff;
}

/* Dark mode */
body.dark {
    --page-bg: #0f1115;
    --page-fg: #e9ecef;
    --codebox-bg: #1a1d24;
    --codebox-fg: #e9ecef;
    --toolbar-bg: #12151b;
}

/* Apply */
body {
    background: var(--page-bg);
    color: var(--page-fg);
}

.toolbar.sticky-top {
    background: var(--toolbar-bg) !important;
}

.codebox {
    background: var(--codebox-bg) !important;
    color: var(--codebox-fg) !important;
}

/* Find highlight looks fine on both, but tweak if you like */
.cm-search-hit {
    background: rgba(255, 200, 0, .25);
}

.cm-search-current {
    background: rgba(255, 150, 0, .45);
    outline: 1px solid rgba(0,0,0,.2);
}

/* Keep footer constant in both themes */
footer {
    background: #f8f9fa; /* pick your fixed color */
    color: #212529;
}

/* When body.dark is on, force the same fixed colors */
body.dark footer {
    background: #f8f9fa !important;
    color: #212529 !important;
}


/*GOOGLE------------------------------------------------*/
.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: #131314;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #e3e3e3;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
    border-color: #8e918f;
}

    .gsi-material-button .gsi-material-button-icon {
        height: 20px;
        margin-right: 12px;
        min-width: 20px;
        width: 20px;
    }

    .gsi-material-button .gsi-material-button-content-wrapper {
        -webkit-align-items: center;
        align-items: center;
        display: flex;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-flex-wrap: nowrap;
        flex-wrap: nowrap;
        height: 100%;
        justify-content: space-between;
        position: relative;
        width: 100%;
    }

    .gsi-material-button .gsi-material-button-contents {
        -webkit-flex-grow: 1;
        flex-grow: 1;
        font-family: 'Roboto', arial, sans-serif;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
    }

    .gsi-material-button .gsi-material-button-state {
        -webkit-transition: opacity .218s;
        transition: opacity .218s;
        bottom: 0;
        left: 0;
        opacity: 0;
        position: absolute;
        right: 0;
        top: 0;
    }

    .gsi-material-button:disabled {
        cursor: default;
        background-color: #13131461;
        border-color: #8e918f1f;
    }

        .gsi-material-button:disabled .gsi-material-button-state {
            background-color: #e3e3e31f;
        }

        .gsi-material-button:disabled .gsi-material-button-contents {
            opacity: 38%;
        }

        .gsi-material-button:disabled .gsi-material-button-icon {
            opacity: 38%;
        }

    .gsi-material-button:not(:disabled):active .gsi-material-button-state,
    .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
        background-color: white;
        opacity: 12%;
    }

    .gsi-material-button:not(:disabled):hover {
        -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
        box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    }

        .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
            background-color: white;
            opacity: 8%;
        }


/* Swap button */
.swap-btn {
    /*border-radius: 999px;*/
    padding-inline: 1.5rem;
    
}

.swap-icon {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.15s ease-out;
}

.swap-btn:hover .swap-icon {
    transform: rotate(180deg);
}

#findNextBtn {
    border-color: #dee2e6;
}
#findPrevBtn {
    border-color: #dee2e6;
}

@media (min-width: 449px) {
    .tools-bar {
        width: 49%;
    }
    .tool-search {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .tools-bar {
        width: 49.1%;
    }
    .tool-search {
        width: 62.7%;
    }
}
@media (min-width: 1200px) {
    .tools-bar {
        width: 49.2%;
    }
    .tool-search {
        width: 68.7%;
    }
    
}
@media (min-width: 1400px) {
    .tools-bar {
        width: 49.32%;
    }
    .tool-search {
        width: 73.1%;
    }
}
/*skyblue*/
/*#ebf0fd*/
/*blue*/
/*#3369E7*/

#special-badge-target {
    background-color: #ebf0fd;
    color: #3369E7;
}

/*Grey*/
/*#F2F3F4*/
/*Darkgrey*/
/*#51565F*/
#special-badge-source {
    background-color: #F2F3F4;
    color: #51565F;
}

/*.CodeMirror-gutters {
    background-color: #F7F8F9 !important;
}

.CodeMirror-linenumber {
    color: #51565F !important;
}*/