@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* height: 100%; */
    min-height: 100%;
    margin-bottom: 0 !important; /* FOR LOGIN */
}

.spinner-lg {
    width: 8rem;
    height: 8rem;
}

.spinner-message {
    font-weight: 900;
    font-size: 15px;
}

.spinner-message-container {
    top: 10rem;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    position: absolute;
    height: 0;
    width: 100%;
}

.spinner-row {
    vertical-align: middle;
    display: inline-block;
    text-align: center;
    width: 99%;
}

/* #spinner-container {
    display: none;
}

    #spinner-container.loading {
        display: block;
    } */

.spinner-container {
    /* width: 100%; */
    /* height: 100vh; */
    /* display: none; */
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

    .spinner-container:before {
        content: "";
        display: inline-block;
        vertical-align: middle;
        height: 100%;
    }

.browsehappy {
    margin: .2em 0;
    background: #ccc;
    color: #000;
    padding: .2em 0
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.login-img {
    height: 150px;
    margin-bottom: 20px;
}

.logout-button-container {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.nav-link .oi, .nav-link .fa-solid {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.logout-link {
    cursor: pointer;
}

.box-background {
    background-color: #e6f2ff;
    padding: 20px;
    border-radius: 10px;
    min-width: 450px;
}

.logo-container {
    height: 140px !important;
}

.h-100 {
    height: 100% !important;
}

.logo {
    height: 100%;
}

.cytoscape-search-item {
    background-color: var(--multi-input-item-bg-color, #dedede);
    border: var(--multi-input-item-border, 1px solid #ccc);
    border-radius: 2px;
    color: #222;
    display: inline-block;
    font-size: var(--multi-input-item-font-size, 14px);
    margin: 5px;
    padding: 2px 25px 2px 5px;
    pointer-events: none;
    position: relative;
    top: -1px;
    margin-top: 0;
}

    .cytoscape-search-item:hover {
        background-color: #eee;
        color: black;
    }

.cytoscape-search-item::after {
    color: black;
    content: '\00D7';
    /* content: '\2716'; */
    cursor: pointer;
    font-size: 18px;
    pointer-events: auto;
    position: absolute;
    right: 5px;
    top: -1px;
}

.cytoscape-search {
    /* position: fixed;
    top: 0;
    z-index: 999; */
    flex: 0.001 0 calc(1.1rem + 1.5em + 0.75rem + 2px);
    border-radius: 10px;
    /* height: calc(1.5em + 0.75rem + 2px); */
    padding: 0.85rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    position: relative; /* For the autocomplete items to be placed correctly */
}

.cytoscape-search input[type=text] {
    margin-left: 5px;
    border: none;
    outline: none;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    border-radius: 10px;
    z-index: 1000;
    /* Position the autocomplete items to be the same width as the container: */
    top: 100%;
    left: 0;
    right: 0;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
    }

    .autocomplete-items div:hover {
        background-color: #e9e9e9;
    }

    .autocomplete-items > div:first-child {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .autocomplete-items > div:last-child {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.fit-btn-container {
    position: absolute;
    left: 0px;
    top: 0;
    z-index: 1;
    cursor: pointer;
    background-color: rgba(255,255,255,0.8);
    border-radius: 5px;
    padding: 1px 5px 0px;
}

.cytoscape-legend .legend-title {
    position:absolute;
    top: 10px;
    right: 20px;
    margin-bottom: 5px;
    margin-right: 5px;
    font-weight: bold;
    font-size: 90%;
}
.cytoscape-legend .legend-scale ul {
    margin: 0;
    padding: 15px;
    position: absolute;
    bottom: 5px;
    right: 10px;
    list-style: none;
    z-index: 999;
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;
}
.cytoscape-legend .legend-scale ul li {
    font-size: 80%;
    list-style: none;
    margin-left: 0;
    line-height: 18px;
    margin-bottom: 2px;
}
.cytoscape-legend ul.legend-labels li span {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin-right: 5px;
    margin-left: 0;
    margin-top: 3px;
    border: 1px solid rgb(0,102,153);
    border-radius: 50%;
}
.cytoscape-legend ul.legend-labels li span.node-rectangle {
    border-radius: 0%;
}

/* TODO: FINISH THIS STYLE */
.cytoscape-legend ul.legend-labels li span.triangle-shape {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid red;
}

.cytoscape-legend a {
    color: #777;
}

#bgc-molecule-viewer-row {
    flex: 0 0 260px;
    white-space: nowrap;
    overflow-x: auto;
    max-width: 1000px;
}

#radial-tree-container {
    background-color: #eeeeee;
}

#radial-tree-sidebar-container {
    flex: 1 1 500px;
    height: 100%;
}

.cytoscape-container {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    position: relative;
}

.bgc-network-container {
    width: 100%;
    max-width: 1100px;
    /* height: 100%; */
    flex: 1 1 400px;
    position: relative;
}

.cytoscape-graph {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    background-color: #eee;
}

/* #cy {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    background-color: #eee;
} */

/* #bgc-network {
    width: 100%;
    max-width: 1100px;
    height: 100%;
    background-color: #eee;
} */

#molecule-details-table {
    font-size: 12px;
    table-layout: fixed;
    overflow-wrap: break-word;
}

.details-panel-icon-container {
    justify-content: space-between;
    padding: 5px 5px 0 5px;
}

.details-panel-icon {
    cursor: pointer;
    color: #0366d6;
    text-decoration: none;
}

#close-details-panel-button {
    cursor: pointer;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.page {
    /* height: 100%; */
    min-height: 100%;
}

.main {
    /* height: 100%; */
    min-height: 100%;
}

.secreted-main {
    background-color: #eeeeee;
}

.content {
    padding-top: 1.1rem;
    /* height: 100%; */
    min-height: 100%;
}

.content-container {
    display: flex;
    /* height: 100%; */
    min-height: 100%;
}

.molecule-cell-img {
    width: 100px;
}

#compound-features-table {
    min-height: 500px;
    background-color: #eee;
}

#inchlib {
    margin-top: 50px;
    /* margin-left: auto; */
    /* margin-right: auto; */
    width: 80%;
    position: relative;
    background-color: #eee;
}

.solubility-chart-container {
    height: 300px;
}

#radar-chart-container {
    display: none;
    width: 700px;
    height: 700px;
    overflow: auto;
    position: absolute;
    z-index: 100;
    background-color: #f5f5f5;
}

#molecules {
    display: none;
    width: 200px;
    overflow: auto;
    position: absolute;
    z-index: 100;
    background-color: #f5f5f5;
    /* border: solid #D2D2D2 2px; */
}

.molecule-heatmap {
    border: solid #D2D2D2 2px;
    padding-bottom: 20px;
}

.molecule-heatmap-btn {
    font-size: 0.7rem;
    padding-top: 0;
    padding-bottom: 0;
}

.heatmap-mol-download {
    position: absolute;
    left: 5px;
}

#scaffolds {
    display: none;
    width: 200px;
    overflow: auto;
    position: absolute;
    z-index: 100;
    background-color: #f5f5f5;
    /* border: solid #D2D2D2 2px; */
    text-align: center;
}

.scaffold {
    border: solid #D2D2D2 2px;
    padding-bottom: 10px;
}

.scaffold_img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 95%;
}

.scaffold_count {
    margin-left: 10px;
    font-weight: bold;
}

.heatmap-molecule-id {
    font-size: 0.7rem;
    text-align: right;
    position: absolute;
    right: 5px;
}

.common-structure-title {
    font-size: 0.8rem;
}

#floating_mol {
    display: none;
    z-index: 101;
    position: absolute;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: solid #D2D2D2 2px;
    width: 150px;
    height: 150px;
}

#floating_img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 98%;
}

#molecule {
    position: absolute;
    height: 235px;
    width: 220px;
    z-index: 100;
    border: solid #D2D2D2 1px;
    border-radius: 10px;
    display: none;
    background-color: #f5f5f5;
}

#molecule_img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 95%;
    background-color: white;
    border-radius: 10px;
}

#mol_id {
    font-size: 0.7rem;
    position: absolute;
    right: 5px;
}

#cy-tabs-content {
    height: 95%;
    /* flex: 0 0 500px; */
    display: flex;
    flex-direction: column;
}

#molecule-viewer-container {
    height: 100%;
    flex: 0 0 500px;
    /* display: flex; */
    flex-direction: column;
}

#molecule-viewer-message {
    color: #999999;
    background-color: #dddddd;
    font-size: 40px;
    text-align: center;
    height: 100%;
    padding-top: 20%;
}

.section-viewer-message {
    color: #999999;
    background-color: #dddddd;
    font-size: 40px;
    text-align: center;
    height: 100%;
    padding-top: 20%;
}

#solubility-message {
    height: 300px;
}

.histogram-viewer {
    width: 100%;
    overflow-y: auto;
    flex: 0 0 300px;
}

.molecule-details-panel-wrap {
    position: fixed;
    top: calc(1.1rem + 42px);
    bottom: 5px;
    right: calc(500px + 2.4rem);
    width: 30em;
    transform: translateX(100%);
    opacity: 0;
    transition: transform .3s ease-out, opacity .3s ease-out;
    z-index: 1000;
}

.molecule-details-panel-wrap.show-details {
    transform: translateX(0%);
    opacity: 1;
}

.molecule-details-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #aaa;
    color: #eee;
    /* overflow: auto; */
    padding: 1em;
}

#molecule-details-panel-body {
    overflow: auto;
    height: 95%;
}

#molecule-viewer {
    /* width: 100%; */
    /* overflow-y: auto; */
    /* flex: 1 1 50%; */
    height: 100%;
    z-index: 1001;
    position: relative;
    background-color: #eeeeee;
}

#cy-search-tab-container {
    /* width: 100%;
    overflow-y: auto;
    flex: 1 1 100%; */
    flex-direction: column;
}

    #cy-search-tab-container.active.show {
        display: flex;
    }

#cy-values-container {
    flex-direction: column;
}

    #cy-values-container.active.show {
        display: flex;
    }

#cy-details-container {
    /* width: 100%;
    overflow-y: auto;
    flex: 1 1 100%; */
}

.cy-small-collapse {
    width: 100%;
    overflow-y: auto;
    flex: 0 0 150px;
}

.cy-small-collapse-header {
    flex: 0 0 30px;
    padding-top: 5px;
}

.cy-tab-container {
    width: 100%;
    overflow-y: auto;
    flex: 1 1 100%;
}

.cy-small-collapse-btn {
    font-size: 12px;
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: none !important;
    background-color: transparent !important;
}

.cy-values-categories-container {
    width: 100%;
    overflow-y: auto;
    flex: 0 0 300px;
}

.advanced-search-category-header {
    width: 100%;
    text-align: center;
    font-weight: bold;
    border-bottom: solid 1px darkgray;
}

.advanced-search-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
  
.advanced-search-group .advanced-wrap {
    min-width: 8em;
    margin: 4px; /* to add gap between rows */
    font-size: 12px;
}

#cy-advanced-search {
    width: 100%;
    overflow-y: auto;
    flex: 0 0 150px;
}

    #cy-advanced-search button{
        font-size: 12px;
    }

#section-header {
    flex: 0 0 50px;
}

#cy-advanced-search-header {
    flex: 0 0 30px;
    padding-top: 5px;
}

#molecule-viewer-row {
    height:100%;
}

#cy-neighbour-btn-container {
    position: absolute;
    right: 10px;
    top: 0;
    z-index: 5;
}

#cy-neighbour-btn {
    background-color: rgba(0,0,0,0.2);
    border-color: rgba(0,0,0,0.2);
}

.molecule-preview-container {
    height: 235px;
    width: 220px;
    z-index: 100;
    border: solid #D2D2D2 1px;
    border-radius: 10px;
    background-color: #f5f5f5;
}

.molecule-preview-img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 95%;
    background-color: white;
    border-radius: 10px;
}

.btn-more-info {
    font-size: inherit;
    padding: 0;
    border: none;
    margin: 0;
    vertical-align: inherit;
}

.molecule-preview-id {
    font-size: 10px;
    /* position: absolute;
    right: 20px;
    bottom: 15px; */
}

.molecule-container {
    height: 250px;
    width: 250px;
}

.compact-font {
    font-size: 10px;
}

.mini-font {
    font-size: 0.55rem !important;
}

.bg-node-default {
    background-color: rgb(230,230,230);
}

.bg-siderophore {
    background-color: rgb(255,153,153);
}

.bg-siderophore-bgc {
    background-color: rgb(255,0,51);
}

.bg-biosurfactant {
    background-color: rgb(5,245,245);
}

.bg-biosurfactant-bgc {
    background-color: rgb(5,155,155);
}

.bg-dual {
    background-color: rgb(184, 139, 250);
}

.bg-dual-bgc {
    background-color: rgb(122, 30, 250);
}

.bg-node-selected {
    background-color: rgb(255,255,0);
}

.bg-node-selected-bgc {
    background-color: rgb(255,195,0);
}

.text-secreted {
    color: #184d69;
}

.text-secreted-light {
    color: #239dd8;
}

.clear-blue-bg {
    background-color: rgba(143, 208, 237, 0.5);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.border-right-dg {
    border-right: solid 1px darkgray;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
