body {
    background-color: #f9f9f9;
    font-family: "Helvetica Neue", sans-serif;
}

.ag-theme-balham {
    font-size: 16px; /* Change this to 15px, 16px etc. as needed */
}

.main-title {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #262730;
}

.kg-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.kg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ag-center-cols-viewport {
    min-height: unset !important;
}

.page {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    left: 0;
    right: 0;
    padding: 20px;
}

.page.visible {
    opacity: 1;
    transform: translateY(0);
    z-index: 1;
}

.page.hidden {
    display: none;
    z-index: 0;
}

.floating-label {
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    background: white;
    padding: 0 0.4rem;
    font-size: 0.8rem;
    color: #6c757d;
}

#comparison-grid .ag-row-focus {
  background-color: unset !important;
}

/* .ag-row-focus {
  background-color: unset !important;
} */

.nav-link.active {
    background-color: #212529 !important;
    color: white !important;
}

.custom-tooltip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background-color: #212529;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    max-width: 600px;
}

.tooltip-text {
    flex: 1;
    user-select: text;
    white-space: pre-wrap;
    word-break: break-word;
}

.popover-body {
    color: white;
}

.copy-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
}

.form-check-input:checked {
  background-color: #212529;
  border-color: #212529;
}

#meta-info,
#meta-info-1,
#meta-info-2 p {
    font-size: 80%;
}

.Treant {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}
.Treant > .node,
.Treant > .pseudo {
    position: absolute;
    display: block;
    visibility: hidden;
}
.Treant.Treant-loaded .node,
.Treant.Treant-loaded .pseudo {
    visibility: visible;
}
.Treant > .pseudo {
    width: 0;
    height: 0;
    border: none;
    padding: 0;
}
.Treant .collapse-switch {
    width: 3px;
    height: 3px;
    display: block;
    border: 1px solid black;
    position: absolute;
    top: 1px;
    right: 1px;
    cursor: pointer;
}
.Treant .collapsed .collapse-switch {
    background-color: #868dee;
}
.Treant > .node img {
    border: none;
    float: left;
}

.node {
    padding: 3px;
    border-radius: 3px;
    background-color: #fefefe;
    border: 1px solid #000;
    min-width: 25em;
    font-size: 80%;
    color: black;
}

.node > p {
    margin: 0;
    white-space: nowrap;
}
.node-name {
    font-weight: bold;
}
p.node-name {
    width: 30em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.node-status {
    font-size: 90%;
    color: #000099;
}
.node.not-started {
    color: #999;
}
p.fully-materialized {
    display: none;
}
p.lazily-materialized {
    display: none;
}
.node-status.failed {
    font-weight: bold;
    color: red;
}
.node-status.child-failed {
    color: red;
}
.node-status.not-started {
    color: blue;
}
.node-status.optimized-out {
    color: blue;
}
.node-status.lazily-materialized {
    color: blue;
}
.node-cols:before {
    content: "Cols: ";
}
p.node-cols {
    width: 30em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.node-size:before {
    content: "Size: ";
}
.node-size {
    display: inline;
}
.node-size-estimate {
    display: inline;
    padding-left: 1em;
}
.node-time:before {
    content: "\ATime: ";
    white-space: pre;
}
.node-time {
    display: inline;
}
.node-cost-estimate {
    display: inline;
    padding-left: 1em;
}
.node-status {
    display: inline;
    padding-left: 1em;
}
.node-time:after {
    content: "ms";
}
.node-details {
    display: none;
    color: blue;
}
.node-details:before {
    content: "Details: ";
}
div.cached-not-pinned .node-time:after {
    content: "ms [cached]";
}
div.cached-pinned .node-time:after {
    content: "ms [cached, pinned]";
}
div.ancestor-cached .node-time:after {
    content: "ms [ancestor cached]";
}
p.node-cache-status {
    display: none;
}
.node.cached-pinned {
    color: grey;
    border: 1px solid grey;
}
.node.cached-not-pinned {
    color: grey;
    border: 1px solid grey;
}
.node-total {
    display: none;
}
.node.high {
    background-color: #ffeeee;
}
.node.veryhigh {
    background-color: #ffcccc;
}
.node.high.cached {
    background-color: #ffffee;
}
.node.veryhigh.cached {
    background-color: #ffffcc;
}

.font-size-30 {
    font-size: 30%;
}
.font-size-40 {
    font-size: 40%;
}
.font-size-50 {
    font-size: 50%;
}
.font-size-60 {
    font-size: 60%;
}
.font-size-70 {
    font-size: 70%;
}
.font-size-80 {
    font-size: 80%;
}
