﻿body {
  min-height: 100vh;
  max-height: 100vh;
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}

main {
  display: 100vh;
  flex-wrap: nowrap;
  height: 100vh;
  height: -webkit-fill-available;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
}

.b-example-divider {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.bi {
  vertical-align: -.125em;
  pointer-events: none;
  fill: currentColor;
}

.dropdown-toggle { outline: 0; }

.nav-flush .nav-link {
  border-radius: 0;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 600;
  color: rgba(0, 0, 0, .65);
  background-color: transparent;
  border: 0;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #d2f4ea;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: inline-flex;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  text-decoration: none;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #d2f4ea;
}

.scrollarea {
  overflow-y: auto;
}

.fw-semibold { font-weight: 600; }
.lh-tight { line-height: 1.25; }



/* Mobile view: Hide the sidebar initially */
@media (max-width: 768px) {
    #left-sidebar {
        display: none; /* Hide the sidebar by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 300px; /* Sidebar width */
        height: 100vh;
        background-color: #fff;
        z-index: 9999;
        overflow-y: auto;
        transition: transform 0.3s ease-in-out;
    }

        /* Show the sidebar when it's toggled */
        #left-sidebar.show {
            display: block;
        }

    /* Show the close button only on mobile and when the sidebar is shown */
    #close-sidebar {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10000;
        display: block; /* Show the close button on mobile */
    }

    /* Collapsible link only visible on mobile */
    #collapsible-link {
        display: block; /* Show the collapsible link on mobile */
    }
}

/* Desktop view: Sidebar should always be visible */
@media (min-width: 769px) {
    #left-sidebar {
        display: block; /* Sidebar is always visible */
    }

    /* Hide collapsible link on desktop */
    #collapsible-link {
        display: none; /* Hide collapsible link on desktop */
    }

    /* Hide the close button on desktop */
    #close-sidebar {
        display: none; /* Hide the close button on desktop */
    }
}

/* Style for the backdrop */
.backdrop {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

    .backdrop.show {
        display: block; /* Show the backdrop when sidebar is open */
    }

/* Mobile view: Show the collapsible link */
@media (max-width: 768px) {
    #collapsible-link {
        display: block; /* Show the collapsible link on mobile */
    }
}

/* Desktop view: Completely hide the collapsible link */
@media (min-width: 769px) {
    #collapsible-link {
        display: none !important; /* Completely hide the collapsible link on larger screens */
    }
}

/* Style for the arrow */
a {
    display: inline-flex;
    align-items: center; /* This centers the text and arrow vertically */
}

    /* Arrow styling */
    a .arrow {
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-left: 10px solid #000; /* Adjusted arrow width to 10px */
        opacity: 0; /* Hidden by default */
        margin-left: 8px;
        transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
        transform: translateX(10px); /* Move the arrow slightly to the right initially */
    }

    /* Show the arrow on hover */
    a:hover .arrow {
        opacity: 1; /* Make the arrow visible */
        transform: translateX(0); /* Move the arrow to its original position */
    }

