/* Private badge — absolute overlay, top-right corner */
.pv-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  background: #ff6b6b;
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

/* Fallback initial icon */
.nav-initial-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}

/* Private category tab — outline style, inherits select-tag sizing */
.pv-select-tag {
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
  background: transparent !important;
}

.pv-select-tag:hover {
  background: rgba(255,107,107,0.1) !important;
  color: #ff6b6b !important;
}

.pv-select-tag.select-tag-active {
  background: #ff6b6b !important;
  color: #fff !important;
  border-color: #ff6b6b !important;
}

/* When Private is active, force React's active tab to look inactive */
body.nav-pvt-active .select-tag-active:not(.pv-select-tag) {
  color: #8a92a6 !important;
  background-color: transparent !important;
  border-color: #979797 !important;
}

body.nav-pvt-active.dark-mode .select-tag-active:not(.pv-select-tag) {
  color: rgba(255,255,255,0.6) !important;
  background-color: transparent !important;
  border-color: #121212 !important;
}

/* Dark mode Private tab */
body.dark-mode .pv-select-tag {
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
}

body.dark-mode .pv-select-tag:hover {
  background: rgba(255,107,107,0.15) !important;
}

/* Right-click context menu */
.nav-ctx-menu {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e8e8ed;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 4px 0;
  min-width: 120px;
  font-size: 14px;
}

body.dark-mode .nav-ctx-menu {
  background: #2c2c2e;
  border-color: #3a3a3c;
}

.nav-ctx-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  color: #ff3b30;
  display: block;
}

.nav-ctx-menu-item:hover {
  background: #f5f5f7;
}

body.dark-mode .nav-ctx-menu-item:hover {
  background: #3a3a3c;
}

/* Hide theme switch and github link always */
.theme-switch-box,
.github-link-box {
  display: none !important;
}

/* Admin floating button */
.nav-admin-btn {
  position: fixed;
  bottom: 56px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0071e3;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 100;
  transition: transform 0.2s;
}

.nav-admin-btn:hover {
  transform: scale(1.1);
}

/* Logout button */
.nav-logout-btn {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff3b30;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 100;
  transition: transform 0.2s;
}

.nav-logout-btn:hover {
  transform: scale(1.1);
}
