@import 'custom-golden-layout-themes/pink';

$logo-primary: #67c52a;
$logo-secondary: #3c3c3f;

$lighter: #fae1fa;
$base: #fac6fa;
$dark: #e3a5e3;
$darker: #e787e7;

::-webkit-scrollbar {
    background: lighten(#1e1e1e, 10%);
}

::-webkit-scrollbar-thumb {
    background: lighten(#1e1e1e, 20%);
}

a {
    //color: #45bbe0 !important;

    &.navbar-brand {
        img.logo {
            &.inverse {
                display: block !important;
            }

            &.normal {
                display: none !important;
            }
        }
    }
}

body {
    background-color: $base !important;
}

input {
    //color: #000 !important;
    background-color: $base;
    border: 0 !important;

    &:focus {
        //color: #eee !important;
        background-color: $base;
        border: 0 !important;
    }

    &.permalink {
        //color: #eee !important;
        background-color: $base;
        opacity: 1;
    }
}

kbd {
    border-color: #818181 !important;
}

pre {
    color: #212529 !important;

    .content {
        background-color: #1e1e1e !important;

        .compiling {
            background-color: #101010 !important;
        }
    }
}

select {
    color: #000 !important;
}

textarea.form-control {
    color: #eee !important;
    background-color: #474747;
    border: 0 !important;
}

.argmenuitem {
    max-width: 250px;

    span {
        &.argtitle {
            font-weight: bold;
            display: block;
            overflow-x: hidden;
            text-overflow: ellipsis;
        }

        &.argdescription {
            max-height: 150px;
            word-wrap: break-word;
            overflow-wrap: break-word;
            font-style: italic;
            font-size: smaller;
            display: block;
            white-space: normal;
            text-overflow: ellipsis;
            overflow-y: hidden;
        }
    }
}

.bg-light {
    background-color: $dark !important;
}

.bottom-bar {
    //color: #aaa !important;
    background-color: $base !important;

    &.bg-light {
        border-top: 1px solid $dark;
    }
}

.btn-light {
    color: #212529 !important;
    background-color: $base !important;
    border-color: $base !important;

    &.active {
        background-color: $darker !important;
        //color: #fff !important;

        &:hover {
            background-color: darken($darker, 5%) !important;
        }
    }

    &:hover {
        background-color: $darker !important;
    }

    &:disabled,
    &:disabled:hover {
        background-color: lighten($base, 5%) !important;
        //color: #fff !important;
    }
}

.card {
    background-color: $lighter !important;
    color: #212529 !important;
    border-color: $dark;
}

.commit-entry {
    &:nth-child(odd) {
        background-color: $base !important;
    }

    &:nth-child(even) {
        background-color: $dark !important;
    }
}

.community-advert {
    color: #222;
    background: $base !important;
    border-color: #006400;

    button {
        opacity: 1;
        color: #006400;
        text-shadow: none;
    }
}

.conformance-wrapper {
    background-color: #1e1e1e !important;

    .compiler-list .form-row {
        border-bottom: 1px solid #3e3e3e;
    }
}

.copy-link-btn:hover {
    background-color: $dark !important;
}

.currentCursorPosition {
    color: white;
    background-color: opacify($dark, 0.8);
}

.custom-select {
    background-color: #76a1c8 !important;
}

.dropdown-item {
    background-color: $base;

    &:hover {
        background-color: $dark !important;
    }
}

.dropdown-menu {
    color: #f2f2f2 !important;
    background-color: $base !important;
    margin: 0;
    border: none;
}

.err-count {
    color: orange !important;
}

.execution-stdout {
    color: black !important;
}

.fa,
.fas {
    color: #3b3c3e;
}

.qb-logo-pri {
    fill: #3b3c3e !important;
}

.qb-logo-sec {
    fill: #e2e2e2 !important;
}

.float-link {
    color: #eee !important;
    background-color: rgba(128, 128, 128, 0.5) !important;

    &:hover {
        background-color: rgba(128, 128, 160, 0.5) !important;
    }
}

.flow-decoration {
    background-color: #b4131f !important;
    color: white !important;
    font-weight: bold;
}

.flow-highlight {
    background-color: rgba(180, 19, 31, 0.4) !important;
}

.form-control:disabled {
    background-color: darken(#474747, 10%);
}

.graph-container {
    background: $base;
    .cfg-info {
        color: #aaa;
    }
    .graph .block-container .block {
        background: $lighter;
        border: 1px solid white;
        color: white;
    }
}

.input-group-text {
    background-color: $base !important;
    border: none !important;
}

.logo-pri {
    fill: $logo-primary !important;
}

.logo-sec {
    fill: $logo-secondary !important;
}

#library-selection {
    .libs-selected-col button {
        color: white;
    }

    .libs-favorites-col button {
        color: white;
    }

    .libs-results-col .lib-fav-button {
        color: white;
    }
}

.lib-item {
    background-color: #333 !important;
}

.linked-code-decoration {
    background: #555657 !important;
}

.linked-code-decoration-inline {
    background: #444444;
}

.linked-code-decoration-line {
    background: lighten($base, 5%) !important;
}

.linked-code-decoration-margin {
    background: $dark !important;
}

.linked-code-decoration-column {
    font-weight: 600;
    color: #44ab40 !important;
}

.lm_controls {
    .lm_maximise {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath fill='%23000' d='M0 4.5V0h9v9H0zM8 5V2H1v6h7z'/%3E%3C/svg%3E") !important;
        background-size: 9px !important;
    }

    .lm_close {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath fill='%23000' d='M.45713 8.5429l-.44426-.44438 3.5955-3.5956L.00697.90152l.8944-.89463 3.6016 3.6015 3.6014-3.6015.88867.88867-3.6014 3.6015 3.6014 3.6015-.89449.89449-3.6015-3.6014-3.5957 3.5956z'/%3E%3C/svg%3E") !important;
        background-size: 9px !important;
    }
}

.lm_header {
    background-color: $dark !important;

    .lm_tab {
        /*
         * replace low res golden-layout icons with svg recreations to improve high DPI displays
         * not all icons in golden-layout are used, so we don't replace all of them
         */
        .lm_close_tab {
            background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath fill='%23000' d='M.45713 8.5429l-.44426-.44438 3.5955-3.5956L.00697.90152l.8944-.89463 3.6016 3.6015 3.6014-3.6015.88867.88867-3.6014 3.6015 3.6014 3.6015-.89449.89449-3.6015-3.6014-3.5957 3.5956z'/%3E%3C/svg%3E") !important;
            background-size: 9px !important;
        }

        .lm_modify_tab_title {
            background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' class='bi bi-pencil' viewBox='0 0 16 16'%3E%3Cpath d='M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5zm-9.761 5.175-.106.106-1.528 3.821 3.821-1.528.106-.106A.5.5 0 0 1 5 12.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.468-.325z'/%3E%3C/svg%3E") !important;
            background-size: 9px !important;
            background-repeat: no-repeat;
            background-position: center center;
            width: 11px;
            height: 11px;
            position: absolute;
            top: 4px;
            right: 23px;
        }
    }
}

.lm_maximised .lm_controls .lm_maximise {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath fill='%23000' d='M1.0096 8.0019v-.99809h6.9807v1.9962H1.0096z'/%3E%3C/svg%3E") !important;
    background-size: 9px !important;
}

.modal-body {
    background-color: $base !important;
    color: #212529 !important;
}

.modal-content {
    .well {
        background-color: $base !important;
        color: #212529 !important;
    }

    .card-body {
        background-color: $base !important;
    }
}

.modal-footer {
    background-color: $base !important;
}

.modal-header {
    color: #212529 !important;
    background-color: $base !important;
    border-bottom-color: $dark;

    .close {
        color: #212529;
    }
}

.nav.nav-tabs {
    li {
        a {
            color: #222 !important;
            background-color: $base !important;
        }
    }

    li:not(.active) {
        a {
            border-bottom: 1px solid $dark !important;
        }
    }

    li.active {
        a {
            background-color: #666 !important;
        }
    }
}

.navbar-light {
    background-color: $base !important;

    .navbar-nav li {
        &:hover {
            color: #212529 !important;
            background-color: $dark !important;
        }

        a {
            color: #212529 !important;

            &:hover {
                color: #212529 !important;
                background-color: $dark !important;
            }
        }
    }

    .nav-link {
        color: rgba(0, 0, 0, 0.5) !important;
    }

    a.nav-link {
        border: rgb(140, 140, 140) 1px solid;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler {
        color: rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.new-cookie-msg {
    color: white;
}

.notification {
    background-color: gray !important;
}

.notification-error {
    background-color: #aa3333 !important;
    color: #fff;

    .close {
        color: #fff;
    }
}

.notification-info {
    background-color: #676767 !important;
    color: #f2f2f2;
}

.notification-off {
    background-color: #222 !important;
    color: #fff;

    .close {
        color: #fff;
    }
}

.notification-on {
    background-color: #33aa33 !important;
    color: black;
}

.stack-usage {
    &.static {
        background: #fdfd96 !important;
    }

    &.dynamic {
        background: #77dd77 !important;
    }

    &.dynamic_bounded {
        background: #ff6961 !important;
    }
}

.opt-line {
    &.analysis {
        background: #fdfd96;
    }

    &.passed {
        background: #77dd77;
    }

    &.missed {
        background: #f58f8a;
    }
}
.popover,
.popover-content,
.libs-container,
.lib-list,
.popover-body,
.popover-header {
    background-color: $base !important;
    color: #212529 !important;
}

.popover-header {
    border-bottom-color: $dark;
}

.popular-arguments-btn {
    border-color: #474747 !important;
}

.popover .arrow::after,
.popover .arrow::before {
    border-left-color: #151515 !important;
    border-right-color: #151515 !important;
}

.popover {
    border-color: #151515 !important;
}

.prepend-options {
    border-color: $dark !important;
    background-color: $dark !important;
    &:hover {
        background-color: darken($dark, 5%) !important;
    }
}

.picker-popout-button {
    border: none !important;
    background: $base !important;
    &:hover {
        background: $dark !important;
    }
}

.rainbow-decoration {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(
        60deg,
        #ed4242 0,
        #ffaa44 20%,
        #fff344 40%,
        #43a35b 60%,
        #447cff 80%,
        #9c44a9 100%
    );
}

#renamepanemodal .modal-body {
    min-height: 100px;
}

.share-disabled {
    color: #333 !important;
}

.share-reddit {
    background-color: #ff4500 !important;
    color: white !important;
}

.share-twitter {
    background-color: #1da1f2 !important;
    color: white !important;
}

.share-bluesky {
    background-color: #0a7aff !important;
    color: white !important;
}

#simplecook {
    background-color: #474747 !important;
}

.text-count {
    color: green !important;
}

.top-bar.btn-toolbar.bg-light {
    border-bottom: 1px solid $dark !important;
}

.tree {
    ul,
    li {
        background-color: $base !important;
    }

    li.tree-editor-file {
        background-color: $dark !important;

        &:hover {
            background-color: $darker !important;
        }
    }
}

.ts-dropdown {
    //color: #f2f2f2 !important;
    background-color: $base !important;
    margin: 0 !important;

    .option:hover {
        background-color: $dark;
    }

    .active {
        background-color: $dark !important;
    }

    .selected {
        background-color: $dark !important;
        //color: #dddddd !important;
    }

    .optgroup-header {
        background: $dark;
        //background-color: #555 !important;
        //color: #eee !important;
        color: #222 !important;
        text-shadow: none !important;
    }

    .optgroup::before {
        border-color: $dark;
    }
}

.ts-wrapper.single {
    .ts-control {
        border: none;
        color: #343a40 !important;
        background: $base !important;
        text-shadow: none !important;

        &:after {
            border-color: #343a40 transparent transparent transparent;
        }

        //&.disabled {
        //    color: #f2f2f2 !important;
        //    background-color: #383838 !important;
        //}
    }
}

#compiler-picker-modal {
    .architecture,
    .compiler-type {
        background: $dark;
        &.active {
            background: $darker;
        }
    }

    .compilers-col .group-wrapper .group {
        .label {
            background: $dark;
        }
        .compiler {
            &:hover {
                background: $dark;
            }
            &.selected {
                background: $darker;
            }
        }
    }
}

#alert {
    &.error-alert {
        .modal-content {
            border: 4px solid #f43636;
        }
    }
}

.compiler-arg-warning-icon {
    color: #f22 !important;
}

.compiler-arg-warning {
    border-color: #f22;
    &:before {
        border-color: #f22;
        background: #f22;
    }
    &.info {
        border-color: #3f92ff;
        &:before {
            border-color: #3f92ff;
            background: #3f92ff;
            content: '\f05a';
            color: rgb(20, 21, 22);
        }
    }
}
