body {
    background-color: #eee;
}

/* Apply the style to all textareas on the page and elements with class .overflow-scroll */
textarea, .overflow-scroll {
    overflow: auto;
    border: none;  /* Remove the border */
    outline: none; /* Optional: Remove the focus outline */
}

/* Width and background color for the entire scrollbar */
textarea::-webkit-scrollbar, .overflow-scroll::-webkit-scrollbar, .overflow-auto::-webkit-scrollbar {
    width: 8px;  
    background-color: transparent; 
}

/* Thumb (the draggable part of the scrollbar) */
textarea::-webkit-scrollbar-thumb, .overflow-scroll::-webkit-scrollbar-thumb {
    background-color: #888; 
    border-radius: 4px;  
}

/* When you hover over the thumb */
textarea::-webkit-scrollbar-thumb:hover, .overflow-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #555;  
}


.form-control {
    border: none;;
}

.form-control input {
    border: 5px solid #fff;
    border-radius: 5px;
}

.table textarea {
    width: 100%;  /* Take up the full horizontal space available */
    overflow: hidden;  /* Hide overflow */
    resize: none;  /* Prevent manual resizing by the user */
    border: none;  /* Remove the border */
    outline: none;  /* Remove the focus outline */
    overflow-y: hidden;  /* Prevent vertical scroll */
    white-space: pre-wrap;  /* Wrap text */
    word-wrap: break-word;  /* Break words when they exceed the width */
    background: transparent;
}

.table textarea:focus {
    background-color: #ffffff;  /* Change to your desired color */
}

.table textarea:hover {
    background-color: #ffffff;  /* Change to your desired color */
}

#output_dat_md .table {
    font-size: .85rem;
}

.nav-btn {
    /* min-width: 150px; */
}

.btn-nav:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

.btn-del { 
    color: #785e90;
}

.round-button {
    padding: 1em; /* Adjust this to scale the size of the button */
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1em; /* Initial width to help maintain aspect ratio */
    height: 1em; /* Initial height to help maintain aspect ratio */
    text-align: center;
}

/* Optional: Ensuring the content (like text or icon) is centered */
.round-button * {
    margin: auto;
}

.hover-link-target {
    display: inline;
    opacity: 0; /* Start fully transparent */
    /* transition: opacity 0.25s ease;  */
}
  
.hover-link-source:hover .hover-link-target {
    opacity: 1; /* Fully visible on hover */
}

.hover-link-target.grow-r {
    max-width: 0; /* Start with no width */
    opacity: 0; /* Start fully transparent */
    overflow: hidden; /* Prevent content from overflowing */
    white-space: nowrap; /* Prevent content wrapping */
    transition: opacity 0.3s ease, max-width 0.2s ease; /* Transition both opacity and max-width */
    display: inline-block;  /* Or block, depending on your layout */
    vertical-align: top; /* Align top if using inline-block */
}

.hover-link-source:hover .hover-link-target.grow-r {
    max-width: 85px; /* Arbitrary width; adjust as needed */
    opacity: 1; /* Fully visible */
}

.hover-link-target.grow-b {
    max-height: 0; /* Start with no width */
    opacity: 0; /* Start fully transparent */
    overflow: hidden; /* Prevent content from overflowing */
    white-space: nowrap; /* Prevent content wrapping */
    transition: opacity 0.5s ease, max-height 0.2s ease; /* Transition both opacity and max-height */
    display: inline-block;  /* Or block, depending on your layout */
    vertical-align: top; /* Align top if using inline-block */
}

.hover-link-source:hover .hover-link-target.grow-b {
    max-height: 15px; /* Arbitrary width; adjust as needed */
    opacity: 1; /* Fully visible */
    transition: opacity 0.5s ease, max-height 0.2s ease; /* Transition both opacity and max-height */

}
  

/* Remove Dropzone margin */
.dropzone.dz-clickable .dz-message {
    margin: 0;
}

.nav-link-header {
    padding: 0;
    color: #fff;
}

.rounded-4 {
    border-radius: 0.8rem !important;
}

.font-slim {
    font-weight: 300;
}

.bc-head {
    float: left;
    vertical-align: bottom;
    padding-bottom: 0;
    margin: 0;
    margin-top: 5px;
}

.btn-sub-primary {
    background-color: #6c757d2e;
    font-weight: 500;
}

.btn-pill {
    border-radius: 2rem;
}

.form-control {
    border: none;
    border-bottom: #0d6efd70 solid 1px;
    border-radius: 0;
    background-color: transparent;
}

.form-control-sm {
    min-height: calc(1.5em + .5rem + 2px);
    padding: 0;
    font-size: 1.2rem;
    border-radius: 0;
}

.max-width-12 {
    max-width: 12%;
}

.max-width-40 {
    max-width: 40%;
}

.btn-toggle-hover:not(.btn-primary):hover {
    color: #007bff; /* Adjust text color as needed */
}

.card {
    background-color: #ffffffa8;
    /* background-color: #c5d9ff96; */
    /* background-color: #bbd3ff66; */
}

.form-label {
    color: #6c757d;
}

.card-h-md {
    min-height: 32rem;
}

.fs-8 {
    font-size: .85rem;
    color: #0b6ffd;
}

.card.btn-sub-primary {
    background-color: #6c757d2e;
}

.border-secondary {
    border-color: #6c757d2e;
}

.graph-line {
    border-left: 2px dashed #6c757d59!important;
}

.node-detail-card {
    max-width: 30rem;
}

.btn-del.x-btn {
    font-size: 1.2rem;
}

.bi-node {
    position: relative;
    left: -1rem;
    margin-right: -1rem;
}

.bi-node-sm {
    position: relative;
    left: -1rem;
    margin-right: -1rem;
}

.data {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.4;
}

.data-md {
    font-size: 1.0rem;
    line-height: 1.4;
}

.btn-alt {
    background-color: #963ed3;
    color: #fff;
}

.btn-alt:hover {
    background-color: rgb(142, 24, 192);
    color: #fff;
}

.w-15-rem {
    width: 12rem;
}


.bi-node-flow {
    position: absolute;
    top: 48%;
    /* left: 50%; */
    transform: translate(-50%, -50%);
    margin-left: -1.5rem;

}

.bi-node-flow::before {
    color: #fff;
    background: #3c3c3c;
    border-radius: 50%;
}


.highlight {
    background-color: #d7ffa9; /* Choose a color that stands out */
    font-weight: bold; /* Optional: makes the text bold */
    display: inline;
}


@keyframes pulse-blue {
    0% {
        /* box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.70); */
        box-shadow: 0 0 0 0 rgb(150, 62, 211, 0.70);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.glowing-blue {
    animation: pulse-blue 2s infinite;
    background: #ffffffb5;
}


.fs8-cnt h3 {
    color: #25a7f0;
}

.fs8-cnt.fs8-cnt-sml p {
    font-size: .85rem;
}

.fs8-cnt .blockquote-footer {
    margin-top: 0;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #cccccc;
}

/* edit toggles */
.hide {
    display: none;
}


/* make modals open faster */
/* .modal.fade .modal-dialog {
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
} */

.fade {
    transition: opacity .08s ease-out;
}










/* trying to sort out the app structure */

.bd-links .btn[aria-expanded="true"] {
    color: rgba(0,0,0,0.85)
}

.bd-links .btn[aria-expanded="true"]::before {
    transform: rotate(90deg)
}

.bd-links .active {
    font-weight: 600;
    color: rgba(0,0,0,0.85)
}

@media (min-width: 768px) {
    .bd-layout {
        display:grid;
        gap: 1.5rem;
        grid-template-areas: "sidebar main";
        grid-template-columns: .25fr 3fr
    }
}

@media (min-width: 992px) {
    .bd-layout {
        grid-template-columns:.5fr 5fr
    }
}

.bd-sidebar {
    grid-area: sidebar
}

.bd-main {
    grid-area: main
}

@media (min-width: 768px) {
    .bd-main {
        display:grid;
        gap: inherit;
        grid-template-areas: "intro" "toc" "content";
        grid-template-rows: auto auto 1fr
    }
}

@media (min-width: 992px) {
    .bd-main {
        grid-template-areas:"intro   toc" "content toc";
        grid-template-columns: 4fr 1fr;
        grid-template-rows: auto 1fr
    }
}


/* NAV HOTNESS */

@media (min-width: 768px) {
    .d-sm-default {
        display: none;
    }
}

@media (max-width: 767px) {
    .d-full-default {
        display: none;
    }
}

/* .navbar {
    justify-content: start;
} */

.my-md-4 {
    margin-top: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* Ensure main container fits the viewport width */
main.container-fluid.my-md-4.bd-layout {
    width: 100%;
    overflow-x: hidden;
}

/* Example style for a child component that needs to handle its own scrolling */
.scrollable-content {
    overflow-x: auto;
    
}

.fs8-grid-list .list-group-item {
    border: none;
    background: none;
    border-radius: .3rem;
    padding: 0;
    font-size: .8rem;
}

.fs8-grid-list .list-group-item.active {
    font-size: 1rem;
}


/* fs8 scrollbar class */
.overflow-x-auto, .overflow-y-auto {
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #ccc hsla(0, 0%, 100%, 0); /* For Firefox: thumb and track */
}

/* WebKit-specific styles */
.overflow-x-auto::-webkit-scrollbar, .overflow-y-auto::-webkit-scrollbar {
    width: 12px; /* scrollbar width */
}

.overflow-x-auto::-webkit-scrollbar-thumb, .overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: #ccc; /* color of the scrollbar */
    border-radius: 10px; /* rounded corners on the scrollbar */
    border: 3px solid transparent; /* Creates padding around the scroll thumb */
    background-clip: content-box; /* ensures the padding doesn't affect the background color */
}

.overflow-x-auto::-webkit-scrollbar-track, .overflow-y-auto::-webkit-scrollbar-track {
    background: #f8f9fa; /* color of the remaining scrollbar track */
}


.btn-nav-container {
    /* width: 3rem; */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-nav {
    margin-bottom: 0.25rem;
}


/*** below is for btn select/unselect toggles ***/
.btn-primary.btn-selected {
    background-color: transparent; /* Make the background transparent */
    color: var(--bs-primary); /* Set the text color to primary */
    border-color: var(--bs-primary); /* Use the primary color for the border */
}

.btn-primary.btn-selected:hover {
    background-color: var(--bs-primary-bg-subtle); /* Primary color on hover */
    /*color: #fff;  White text on hover */
}


.btn-outline-secondary.btn-selected {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
    border-color: var(--bs-secondary) !important;
}


.css-pulse-anim {
    background: linear-gradient(216deg, #a64fd7, #35abce, #ffffff);
    background-size: 600% 600%;

    -webkit-animation: fs-a-pulse 3s ease infinite;
    -moz-animation: fs-a-pulse 3s ease infinite;
    -o-animation: fs-a-pulse 3s ease infinite;
    animation: fs-a-pulse 3s ease infinite;

    opacity: 0.5;
}

@-webkit-keyframes fs-a-pulse {
    0%{background-position:96% 0%}
    50%{background-position:5% 100%}
    100%{background-position:96% 0%}
}
@-moz-keyframes fs-a-pulse {
    0%{background-position:96% 0%}
    50%{background-position:5% 100%}
    100%{background-position:96% 0%}
}
@-o-keyframes fs-a-pulse {
    0%{background-position:96% 0%}
    50%{background-position:5% 100%}
    100%{background-position:96% 0%}
}
@keyframes fs-a-pulse {
    0%{background-position:96% 0%}
    50%{background-position:5% 100%}
    100%{background-position:96% 0%}
}


.css-pulse_OLD {
    background: linear-gradient(92deg, rgba(166, 79, 215, 0.5), rgba(18, 174, 220, 0.5), rgba(255, 64, 251, 0.5));
    background-size: 600% 600%;

    -webkit-animation: fs-a-pulse 6s ease infinite;
    -moz-animation: fs-a-pulse 6s ease infinite;
    -o-animation: fs-a-pulse 6s ease infinite;
    animation: fs-a-pulse 6s ease infinite;
}


@-webkit-keyframes fs-a-pulse {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes fs-a-pulse {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-o-keyframes fs-a-pulse {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes fs-a-pulse {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}


.css-pulse {
    background: linear-gradient(270deg, #0d6efd, #7c0dfd, #bc0dfd);
    background-size: 600% 600%;

    -webkit-animation: computing 6s ease infinite;
    -moz-animation: computing 6s ease infinite;
    animation: computing 6s ease infinite;
}

@-webkit-keyframes computing {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@-moz-keyframes computing {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}
@keyframes computing {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}


textarea.auto-height {
    overflow: auto;
    resize: none; /* Optional: prevents manual resize */
    box-sizing: border-box; /* Include padding and border in height calculation */

}


.hide-fs8-card {
    display: none;
}

/* Show fs8-card on mobile devices */
@media (max-width: 768px) {
    .hide-fs8-card {
        display: block;
    }
}

    /* On small screens, glass card, make it float like a modal */
    @media (max-width: 767px) {
        .gls-card-container {
            position: fixed;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 95vw;
            max-height: 70vh;
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.50);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 12px 12px 0 0;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
            z-index: 1050;
            padding: 1rem;
            margin: 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow-x: clip;
        }

        /* Add backdrop */
        .gls-card-container::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: -1;
        }

        /* Hide the border on mobile */
        .gls-card-container .border-left {
            display: none;
        }
    }

    .gls-card {
        background-color: rgba(255, 255, 255, 0.50); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.10);
    }

    .graph-node-prompt {
        max-width: 85%;
        overflow-y: auto;
        max-height: 5rem; 
    }

    .gls-card-sm {
        max-width: 75%;
        overflow-y: auto;
        max-height: 5rem;
        background: transparent;
        box-shadow: none;
    }
