.top-nav {
  background: #0b2535;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 100px;
  position: sticky;
  top: 0;
  z-index: 300;
  font-family: var(--font-family-primary) !important;
}

.top-nav *:not([class*="fa-"]) {
  font-family: var(--font-family-primary) !important;
}

.nav-logo img,
.nav-brand img {
  height: 36px;
  object-fit: contain;
  display: block;
}

.nav-brand-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #ffffff !important;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-radius: 8px;
}

.sidebar-toggle-btn svg {
  stroke: #ffffff !important;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
}

.nav-a {
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #5dd8f5;
}

.nav-a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #5dd8f5;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e7fa8, #2aafd4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.nav-avatar:hover {
  border-color: #5dd8f5;
  transform: translateY(-1px);
}

.notif-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
}

.notif-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.logout-btn {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.12) !important;
  border: 1px solid rgba(255, 107, 107, 0.2) !important;
}

.logout-btn:hover {
  background: rgba(255, 107, 107, 0.22) !important;
  color: #ff8787 !important;
  transform: translateY(-1px);
}

.notif-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #5dd8f5;
  border-radius: 50%;
  border: 1.5px solid #0b2535;
}

/* Unread notification count badge */
.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #0b2535;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mainMenuToggle {
  display: none;
}

@media screen and (max-width: 979px) {
  .nav-a {
    padding: 10px;
    font-size: 13px;
  }
  .nav-brand-wrap {
    gap: 0;
  }
}

@media screen and (max-width: 767px) {
  .mainMenuToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 120px;
    right: 0;
    background-color: var(--accent);
    color: #fff;
    border-radius: 100px 0 0 100px;
    padding: 10px;
    height: 40px;
    width: 60px;
    border: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    gap: 8px;
    text-transform: uppercase;
    font-size: 15px;
    letter-spacing: 0.01rem;
    font-weight: 500;
  }

  .mainMenuToggle:hover,
  .mainMenuToggle:focus,
  .mainMenuToggle:active {
    background-color: #033648;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 170px;
    right: 0;
    background-color: #0b2535;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 8px 0 0 8px;
  }

  .nav-links.active a.nav-a {
    color: #fff;
  }

  .nav-links.active a.nav-a.active {
    color: #5dd8f5;
  }

}

/* BUTTONS used in header navigation */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.52rem 1.2rem;
  border-radius: 9px;
  font-family: var(--font-family-primary), sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(14, 127, 168, 0.25);
}

.btn-accent:hover:not(:disabled) {
  background: #0a6a8e;
  transform: translateY(-1px);
}

.btn-accent:disabled,
.btn-accent.disabled {
  background: var(--accent);
  color: #fff;
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 7px;
}



@media all and (max-width: 767px) {
  .top-nav {
    flex-direction: inherit;
  }

  .nav-right {
    width: auto;
  }
}