.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
  padding: 0.75rem 1.25rem;
  color: #fff;
  border-bottom: 2px solid var(--accent-color);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

.logout-link {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.logout-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.small-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* makes black SVGs icons white */
  transition: filter 0.25s ease, transform 0.2s ease;
}


.nav-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


.nav-icon-link:hover .small-icon {
  transform: scale(1.1);
  filter: invert(88%) sepia(64%) saturate(648%) hue-rotate(10deg) brightness(102%) contrast(101%);
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-left,
  .nav-right {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .logout-link {
    font-size: 0.9rem;
  }
}
