/* 
 * navigation_list_toplevel
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
}

.sidebar {
  width: 250px;
  height: 100%;
  margin: auto;
  padding: 0px;
  position: fixed; /* Fixed Sidebar (stay in place on scroll) */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  overflow-x: hidden; /* Disable horizontal scroll */
  background: var(--bg-sidebar);
}

.navbar {
  width: 100%;
  min-width:360px;
}

.container-nav {
  max-width: 1000px;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
  display: block;
  position: relative;
}

.sidebar .menu-items {
}
.sidebar .container-nav li,
.navbar .container-nav li {
  list-style: none;
}
.sidebar .container-nav li {
  font-size: 1.4rem;
}
.navbar .container-nav li {
  font-size: 1.6rem;
}

.sidebar .container-nav a,
.navbar .container-nav a {
  text-decoration: inherit;
  font-weight: 500;
}

.sidebar .container-nav a {
}
.navbar .container-nav a {
}

.sidebar .container-nav .selected a,
.navbar .container-nav .selected a {
  text-decoration: underline;
}

.sidebar .nav_header,
.navbar .nav_header {
      font-weight: 600;
      line-height: 1.3;
      font-size: 1.6em;
      margin-bottom: 1em;
}

.container-nav .checkbox {
  position: absolute;
  display: block;
  height: 40px;
  width: 40px;
  top: 8px;
  left: 16px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.container-nav .hamburger-lines {
  display: block;
  height: 26px;
  width: 32px;
  position: absolute;
  top: 14px;
  left: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container-nav .hamburger-lines .line {
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: var(--text-primary);
}

.container-nav .hamburger-lines .line1 {
  transform-origin: 0% 0%;
  transition: transform 0.5s ease-in-out;
}

.container-nav .hamburger-lines .line2 {
  transition: transform 0.3s ease-in-out;
}

.container-nav .hamburger-lines .line3 {
  transform-origin: 0% 100%;
  transition: transform 0.5s ease-in-out;
}

.sidebar .container-nav a:hover,
.navbar .container-nav a:hover {
  text-decoration: underline;
}

.sidebar .menu-items {
  height: auto;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.navbar .menu-items {
  display: flex;
  position: absolute;
  z-index: 1;
  flex-direction: column;
  transform: translate(-360%);
  transition: transform 0.6s ease-in-out;
  background: var(--bg-sidebar);
  height: auto;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 20px;
  text-align: center;
}

.sidebar .menu-items li,
.navbar .menu-items li {
  font-weight: 500;
}

.logo {
  position: absolute;
  top: 2px;
  right: 15px;
}

.container-nav input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.container-nav input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.container-nav input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.container-nav input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

.container-global {
    padding: 0px;
    text-align: center;
}

.container-global ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0px;
  list-style: none;
}
.container-global li {
    display: inline;
    padding: 0 0.5rem;
    white-space:nowrap
}
.container-global ul li:not(:last-child) {
  border-right: 1px solid var(--header-footer-text);
}

.container-footer a,
.container-global a {
  text-decoration: inherit;
  font-weight: 500;
}

.container-footer a {
}
.container-global a {
}

.container-footer .selected a,
.container-global .selected a {
  text-decoration: underline;
}

.navbar .btn-primary,
.sidebar .btn-primary, 
.navbar .btn-secondary,
.sidebar .btn-secondary {
  display: inline-block;
  background:  var(--bg-button-secondary);
  color: var(--text-button-secondary);
  padding: 10px 20px;
  text-decoration: none;
  border: 0px;
  border-radius: 5px;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  margin-right: 1em;
}
.navbar .btn-primary,
.sidebar .btn-primary {
  background:  var(--bg-button-primary);
  color: var(--text-button-primary);
}

.navbar .theme_mode_select select,
.sidebar .theme_mode_select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  border: none;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}

/* Optional: Hover/focus styles */
.navbar .theme_mode_select select:hover,
.navbar .theme_mode_select select:focus,
.sidebar .theme_mode_select select:hover,
.sidebar .theme_mode_select select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #2684ff66;
}