:root,
[data-bs-theme=light] {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-active: #90ee90;
  --bs-freeze: #90cdee;
  --bs-stopped: #999999;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
}

[data-bs-theme=dark] {
  --bs-body-color: #999999;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-toggle::after { display: none; }
.dropdown-toggle { border: none; background: none; }

.menu {list-style: none;padding: 0;}
.menu .dropdown {position: relative;}
.menu .dropdown .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  list-style: none;
  padding: 0;
  padding-bottom: 0.25rem;
  opacity: 85%;
}

.nav-link {
  color: var(--bs-body-color) !important;
  transition: transform 0.3s ease;
}

.nav-link:hover, .nav-link:focus { transform: scale(0.93); }

[data-bs-theme=dark] .nav-link, .nav-item {
  color: #b4b4b4 !important;
}

[data-bs-theme=light] .nav-link, .nav-item {
  color: #000000 !important;
}

.roboto-500 {
  font-family: "Roboto", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.dropdown-menu {
  position: absolute;
  z-index: 5;
}

.menu .dropdown:hover .dropdown-menu,
.menu .dropdown .dropdown-menu:hover {
  display: block;
}

.line-btn {
  position: relative;
  transition: background-color 0.5s ease;
  z-index: 10;
}

.line-btn:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--linear-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  will-change: transform;
  pointer-events: none;
  z-index: 15;
}

.line-btn:not(.dropdown-toggle):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.line-btn:not(.dropdown-toggle):not(:hover)::after {
  transform: scaleX(0);
  transform-origin: right;
}

[data-bs-theme=dark] .dropdown-item:hover, .dropdown-item:focus, .dropdown-item:active {
  background-color: rgb(36,36,36);
  color: inherit;
}

[data-bs-theme=light] .dropdown-item:hover, .dropdown-item:focus, .dropdown-item:active {
  background-color: inherit;
  color: #000;
}

[data-bs-theme=light] .dropdown

.dropdown-header {
  border-bottom: 2px solid var(--linear-color);
  font-size: 1rem;
}

.dropdown-center {
  text-align: center;
}

ul.dropdown-menu li:first-child {
  padding-top: 0.5rem !important;
}

.bg-body-tertiary {
  --bs-bg-opacity: 0.8;
  background-color: rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity)) !important;
}


[data-bs-theme=light] .dropdown-menu {
  background-color: rgb(var(--bs-tertiary-bg-rgb));
}

[data-bs-theme=dark] .dropdown-menu {
  background-color: rgb(36,36,36);
}

.ms-1, .ms-3, .me-3 {
  margin: 0 !important;
}

@media (max-width: 991px) {
  .container-fluid, .navbar-collapse, .collapse, .px-2 {
    padding: 0 !important;
  }

  .navbar-brand, .nav-link {
    padding-left: 0.75rem !important;
    transform: none !important;
  }

  .nav-link.open {
    transition: transform 0.5s ease-out;
  }

  .ms-1 {
    margin-left: 0.25rem !important;
  }

  .ms-3 {
    margin-left: 0.75rem !important;
  }

  .me-2-5 {
    margin-right: 0.5rem !important;
  }

  .me-3 {
    margin-right: 0.75rem !important;
  }

  .line-btn:not(.dropdown-toggle)::after {
    display: none;
  }

  .line-btn:hover {
    background-color: var(--linear-color-rgba);
  }

  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transform-origin: top;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.5s;
  }

  .dropdown:not(.open) > .dropdown-menu {
    position: static;
  }

  .dropdown.open > .dropdown-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    display: flex !important;
    flex-direction: column;
    position: static;
  }

  [data-bs-theme=dark] .dropdown.open > .dropdown-menu,
  [data-bs-theme=dark] .navbar-nav .nav-item.open,
  [data-bs-theme=dark] .card-body  {
    --bs-bg-opacity: 0.4;
    --bs-tertiary-bg-rgb: 32, 32, 32;
    background-color: rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity));
  }

  [data-bs-theme=light] .dropdown.open > .dropdown-menu, 
  [data-bs-theme=light] .navbar-nav .nav-item.open,
  [data-bs-theme=light] .card-body {
    --bs-bg-opacity: 0.4;
    --bs-tertiary-bg-rgb: 238, 239, 240;
    background-color: rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity));
  }
  }
  

  .dropdown-menu .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    vertical-align: middle;
  }

  .dropdown-menu .dropdown-item:has(svg) {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: center;
  }

  .dropdown-menu .status {
    margin-left: auto;
    padding: 0.2em 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.25rem;
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link.show {
    margin-left: 0.5rem !important;
  }

  ul.rounded-bottom-2-1 {
    border-bottom: none !important;
  }
}

