html { height: 100%; }
body { min-height: 100%; }

main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px);
    overflow-y: auto;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left:30px;
    padding-right:30px;
}

#login-user {
    color: white;
}

.admin-item {
    display: none !important;
}

.display-text {
    font-size: 1rem;
}

@media (min-width: 576px) {
    .display-text {
        font-size: 1.2rem;
    }

    .responsive-text {
        font-size: .75rem;
    }
}

@media (min-width: 768px) {
    .display-text {
        font-size: 1.3rem;
    }

    .responsive-text {
        font-size: .8rem;
    }
}

@media (min-width: 992px) {
    .display-text {
        font-size: 1.4rem;
    }

    .responsive-text {
        font-size: .9rem;
    }
}

@media (min-width: 1200px) {
    .display-text {
        font-size: 1.5rem;
    }

    .responsive-text {
        font-size: 1rem;
    }
}

/* Tooltip container */
#tooltip {
    visibility: hidden;
    width: 250px;
    background-color: black;
    color: #fff;
    padding: 6px;
    border-radius: 6px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 5000;
}

/*
 * Fixes
 */
.btn-group-xs > .btn, .btn-xs {
  padding: .25rem .4rem;
  font-size: .875rem;
  line-height: .5;
  border-radius: .2rem;
}

table.dataTable tbody td {
    vertical-align: middle;
}

table.table-bordered {
    border-collapse: collapse;
}

.cell-middle tbody td {
    vertical-align: middle !important;
}

.filled,
.filledKey {
    fill: #8888ff !important;
}

.found,
.foundKey,
.new,
.newKey,
.onShelf,
.changeShelfSelected {
    fill: coral !important;
}


.selected,
.selectedKey {
    fill: #cb0101 !important;
    stroke-width: 2px;
}

#ColorKey {
    max-height: 75px;
}

html,
body {
    height: 100%;
    padding-top: 36px;
}


body {
    font-size: .875rem;
}

nav:not(.dt-paging nav) {
    background-color: #1a48aa;
}

.navbar {
    background-color: #1a48aa;
    position: fixed;
    width: 100%;
}

.navbar-nav {
    align-items: center;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px;
}

.navbar-toggler i {
    color: #FFF;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

aside {
    /* padding-top: 70px; */
}

@media (min-width: 768px) {
    .navbar-collapse {
        flex-grow: 0;
    }
}

.navbar .dropdown .api-key-button:hover {
    color: gold !important;
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 70px;
    bottom: calc(100vh - 70px);
    z-index: 100; /* Behind the navbar */
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-menu {
    position: fixed;
    top: 70px;
    bottom: calc(100vh - 70px);
    z-index: 100; /* Behind the navbar */
}

.sidebar ul {
    justify-content: space-between !important;
}

.sidebar ul li a {
    margin-left: 10px;
    margin-right: 10px;
}

@media (min-width: 768px) {
    .sidebar ul {
        justify-content: flex-start !important;
    }
}

.sidebar-sticky {
    position: fixed;
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: 999;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link i {
    min-width: 18px;
    text-align: center;
}

.sidebar .nav-link.active {
    color: #007bff !important;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
    cursor: pointer;
}

/*
 * Navbar
 */

.navbar {
    height: 70px;
}

.navbar-short {
    height: 100%;
}

.navbar-brand {
    color: #FFF;
    font-size: 1.15rem;
    text-align: center;
    text-shadow: 1px 1px #07132c;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 72, 170, 0.75);
    mix-blend-mode: lighten;
    z-index: 1;
    pointer-events: none; /* Allow interactions to pass through */
}

.navbar-brand img {
    margin-left: .25rem;
    padding-top: .2rem;
    padding-bottom: .2rem;
    padding-left: .5rem;
    padding-right: .75rem;
    min-width: 200px;
    z-index: 1;
}

.brand-text {
    position: absolute;
    top: 35px;
    left: 130px;
    transform: translate(-50%, -50%);
    z-index: 2;
    white-space: nowrap;
    font-size: 1.15rem;
    text-align: center;
    text-shadow: 1px 1px #07132c;
    line-height: 1.2em;
}

.navbar-brand:hover, 
.navbar-brand:focus {
    color: #FFF;
}

.navbar .form-control {
    /* padding: .75rem 1rem; */
    border-width: 0;
    border-radius: 0;
    background-color: #1a48aa;
}

.navbar form a {
    font-size: 1rem;
}

.navbar .dropdown .dropdown-item {
    color: #000 !important;
}

#myAcctDropdown {
    font-size: 1.5rem;
}

.acct-menu {
    min-width: 200px;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}


.nav-item a {
    color: #FFF !important;
    font-size: 1rem;
    position: relative;
    text-decoration: none !important;
}

.nav-item a::after,
.nav-item .dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Place the underline below the text */
    width: 0;
    height: 4px; /* Thickness of the underline */
    background-color: white; 
    transition: width 0.3s ease; /* Smoothly expand the underline */
}


.nav-item a:hover {
    text-decoration: none;
}

.nav-item a.active::after,
.nav-item a:hover::after {
    width: 100%; /* Expand underline to the full width of the text */
}

.nav-item a.dropdown-item::after,
.nav-item a.dropdown-item.active::after{
    background-color: #ffffff00;
}

.nav-item a.active,
.nav-item a.dropdown-item.active {
    color:white !important;
}

.nav-item .dropdown-toggle.active::after {
    width: 100%; /* Keep underline active */
}


@media screen and (min-width: 768px) {
    .nav-item {
        margin-left: 10px;
    }
}

/*
 * Utilities
 */

.border-top { border-top: 1px solid #e5e5e5; }
.border-bottom { border-bottom: 1px solid #e5e5e5; }


/*
 *  Fixes
 */
.modal { overflow: auto !important; }

/*
 *  Collapsable Cards
 */
.card-header .fa {
    transition: .3s transform ease-in-out;
}

a.collapsed, a.d-block,
a.collapsed:hover, a.d-block:hover,
a.collapsed:visited, a.d-block:visited {
    color: black;
    text-decoration: none;
}

/*
 *  Components
 */

#components {
    margin-top: 0;
}

@media screen and (min-width: 768px) {
    #components {
        margin-top: 0;
    }
}

/*
 *  ScrollNav
 */

#scroll-nav {
    display: none;
    padding: 0 0 0 10px;
    margin: 0;
}

#scroll-nav-todo-header {
    position: fixed;
    top: 132px;
}

.scroll-nav-todo {
    position: fixed;
    background-color: #f8f9fa;
    border: 1px solid #343a40!important;
    border-radius: 5px;
    padding: 5px;
    margin-top: 20px;
    max-height: calc(50vh - 85px);
    overflow-y: scroll;
    width: 100%;
}

#scroll-nav-components-header {
    position: fixed;
}

.scroll-nav-components {
    position: fixed;
    background-color: #f8f9fa;
    border: 1px solid #343a40!important;
    border-radius: 5px;
    padding: 5px;
    overflow-y: scroll;
    width: 100%;
}

@media screen and (min-width: 576px) {
    #scroll-nav {
        display: block;
    }

    #scroll-nav-todo-header {
        top: 122px;
    }

    .scroll-nav-todo {
        float: left;
        max-height: calc(50vh - 100px);
        width: 25%;
    }

    #scroll-nav-components-header {
        top: calc(50vh + 60px);
    }

    .scroll-nav-components {
        float: left;
        top: calc(50vh + 90px);
        max-height: calc(50vh - 100px);
        width: 25%;
     }
}

@media screen and (min-width: 768px) {
    #scroll-nav-todo-header {
        top: 85px;
    }

    .scroll-nav-todo {
        max-height: calc(50vh - 80px);
        width: 20%;
    }

    #scroll-nav-components-header {
        top: calc(50vh + 40px);
    }

    .scroll-nav-components {
        top: calc(50vh + 70px);
        max-height: calc(50vh - 80px);
        width: 20%;
    }
}

@media screen and (max-width: 992px) {
    #navbarSupportedContent {
        background-color: #ededed;
        border-radius: 0 0 5px 5px;
        --bs-gutter-x: 0rem !important;
    }

    #navbarSupportedContent ul {
        align-items: end !important;
        margin-right: 5px;
    }

    .nav-item a {
        color: #000 !important;
        text-align: right;
    }

    .nav-item .dropdown-menu {
        border-radius: 0;
    }
}

#footer-message {
    /* bottom: 0;
    position: absolute; */
        /* Stick to the bottom of the screen */
      /* margin-top:20px; */
      /* st */
      margin-top: auto;
      /* width: 100%; */
      /* text-align: center; */
      margin-left: auto;
      margin-right: auto;
      justify-content: center;
      align-items: center;

      /* background-color: #f0f0f0; */
      display: flex;
      padding: 10px;
      font-size: 14px;
}

.footer-link{
    padding:10px;
}


.toastify-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toastify-content h6,
.toastify-content span {
    margin: 0;
}