.CodeMirror {
    border: 1px solid black;
    font-size: 13px;
}

footer{
    height: 50px;
    background-color: #f5f5f5;
}

footer p{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

/* Site wide disclaimer. Opts out of the fixed height and grey band above, it has
   to wrap freely on narrow screens and stay in the background visually. */
footer.site-disclaimer {
    height: auto;
    background-color: transparent;
}

footer.site-disclaimer p {
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1.4;
}

#result{
  margin-bottom: 50px;
}

.row{
  margin-bottom: 20px;
}

.sparql-example{
  cursor: pointer;
}

#xsltcontainer{
  display: none;
}

.panel-body{
  max-height: 450px;
  overflow: scroll;
}

.pre-scrollable {
    max-height: 550px;
    overflow-y: scroll;
}

#permalink-url{
  font-size: 24px;
  text-align: center;
}

#fullscreen-navbar {
  display: none;
  background-color: #f5f5f5;
}

#fullscreen-navbar .container {
  text-align: center;
}

#fullscreen-navbar .row {
  margin-bottom: 0px;
}

#fullscreen-navbar input {
  margin-top:5px;
  margin-bottom: 5px;
}

.CodeMirror-fullscreen {
  top: 44px;
}

.btn-dark {
    color: #fff;
    background-color: #555;
    border-color: #555;
}

.btn-dark:hover {
    color: #fff;
    background-color: #aaa;
    border-color: #666;
}

.container-fluid{
    max-width: 1600px;
}

.buttons-holder .btn{
    margin: 3px;
}

/* Pharmacy page styles */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    font-size: 1.25rem;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .table-responsive {
        border: 0;
    }
}

/* Search bar styles */
.navbar form[role="search"] {
    display: flex;
    align-items: center;
}

.navbar form[role="search"] .form-select {
    min-width: 180px;
    max-width: 220px;
}

.navbar form[role="search"] .form-control {
    min-width: 150px;
}

@media (max-width: 991.98px) {
    .navbar form[role="search"] {
        margin-top: 10px;
        width: 100%;
    }

    .navbar form[role="search"] .form-select,
    .navbar form[role="search"] .form-control {
        flex-grow: 1;
    }
}

/* Purple badge, used for pharmacology bubbles */
.bg-purple {
    background-color: #6f42c1 !important;
}

/* Neutral badge, used for organism bubbles */
.bg-organism {
    background-color: #d3d9e3 !important;
}

/* Entity bubbles (worktype, compound, pharmacology, …). They must look the same on
   every page, see BubbleKind in bubbles.kt */
.bubble {
    white-space: normal;
    text-align: left;
}

.bubble a {
    color: inherit;
}

/* Guided tour. Opt in from the navbar, see assets/js/tutorial.js.
   Positioned in page coordinates so the card stays glued to its target while scrolling. */
.tour-card {
    position: absolute;
    z-index: 1080;
    width: 20rem;
    max-width: calc(100vw - 1rem);
    padding: 0.75rem 1rem;
    background-color: #fff;
    border: 1px solid #0d6efd;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.tour-card-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.tour-card-body {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.tour-card-footer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tour-card-count {
    margin-right: auto;
    font-size: 0.75rem;
    color: #6c757d;
}

.tour-target {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* The tutorial toggle is a button so it can carry aria-pressed, but it sits among links */
#tutorial-toggle {
    text-decoration: none;
}

/* Faceted search: fixed width sidebar, results take all the remaining width */
.container-fluid.container-full {
    max-width: none;
}

.facet-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
}

.facet-layout > .facet-sidebar {
    flex: 0 0 300px;
    max-width: 100%;
    position: sticky;
    top: 1rem;
}

.facet-layout > .facet-results {
    flex: 1 1 0;
    min-width: 0;
}

.facet-panel .facet-options {
    max-height: 18rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
}

.facet-panel .facet-option {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    padding-left: 0;
}

.facet-panel .facet-option .form-check-input {
    flex: 0 0 auto;
    margin-top: 0.3rem;
    margin-left: 0;
}

.facet-panel .form-check-label {
    cursor: pointer;
    line-height: 1.5;
    min-width: 0;
}

.facet-panel .badge {
    white-space: normal;
    text-align: left;
}

.facet-panel .facet-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding-top: 0.2rem;
    font-size: 0.75rem;
}

.facet-panel .facet-unreachable {
    opacity: 0.4;
}

.facet-panel .facet-group + .facet-group {
    border-top: 1px solid #dee2e6;
    padding-top: 0.75rem;
}

@media (max-width: 991.98px) {
    .facet-layout > .facet-sidebar {
        flex: 1 1 100%;
        position: static;
    }

    .facet-panel .facet-options {
        max-height: 12rem;
    }
}
