
/* === Top Nav Bar === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-primary);
  z-index: 1002;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
}

nav li {
  height: 100%;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  color: white;
}

nav li:hover {
  background-color: var(--color-hover1);
}

nav li:first-child {
  margin-right: auto;
  padding: 0;
}


nav li:active {
  background-color: var(--color-secondary-dark);
}

.top-bookmark-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 30px;
  color: white;
  position: relative; /* Important for .badge positioning */
}

#bookmark-menu-icon {
  height: 60%;
  width: auto;
  display: block;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(-100%, 20%); /* Adjust as needed */
  background-color: var(--color-accent);
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 50%;
  pointer-events: none;
  min-width: 1;
  text-align: center;
  line-height: 1;
  display:none;
}


.main-bar{
  flex:1;
  justify-content: flex-end;
}

.main-bar ul:first-child{
  margin-right:auto;
}

.main-bar ul:last-child{
  margin-left:auto;
}

/* === Sidebar === */
.side-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: rgba(7, 46, 137, 0.6);
  backdrop-filter: blur(10px);
  padding: 1rem;
  margin: 0;
  flex-direction: column;
  z-index: 1001;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
}


.side-bar.show {
  transform: translateX(0);
}

.side-bar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.side-bar li {
  width: 100%;
}

.side-bar a {
  display: block;
  width: 100%;
  height: 3rem;
  line-height: 3rem;
  padding: 0 1.5rem;
  text-decoration: none;
  color: white;
  background-color: transparent;
  box-sizing: border-box;
}

.side-bar a:hover {
  background-color: var(--color-hover1);
}

.side-bar a:active {
  background-color: var(--color-secondary-dark);
}

.side-bar li:first-child {
  align-self: flex-end;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* === Responsive === */
.menu-button {
  display: none;
  margin-left: 1em;
  margin-top: 2em;
}

@media (max-width: 860px) {
  .hideOnMobile {
    display: none;
  }

  .menu-button {
    display: block;
  }
}

@media (max-width: 500px) {
  .side-bar {
    width: 100%;
  }
}