/* ============================================================
   shared/navbar.css  –  Global navigation bar
   ============================================================ */

.sb-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bark-deep, #060608);
  border-bottom: 2px solid var(--crimson, #DC2626);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  z-index: 9000;
  font-family: 'Crimson Text', Georgia, serif;
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}

.sb-navbar-logo {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  flex-shrink: 0;
}
.sb-navbar-logo:hover { color: var(--crimson, #DC2626); }
.sb-navbar-logo span { color: var(--crimson, #DC2626); }

.sb-navbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 100%;
}

.sb-nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: var(--ink-mid, #9898A0);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  transition: color .2s, background .2s;
  white-space: nowrap;
  position: relative;
}
.sb-nav-link:hover {
  color: var(--ink, #E8E8ED);
  background: rgba(255,255,255,.04);
}
.sb-nav-link.active {
  color: #fff;
}
.sb-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--crimson, #DC2626);
  border-radius: 2px 2px 0 0;
}

/* Dropdown */
.sb-nav-dropdown {
  position: relative;
  height: 100%;
}
.sb-nav-dropdown > .sb-nav-link {
  cursor: default;
}
.sb-nav-dropdown > .sb-nav-link::before {
  display: none;
}
.sb-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bark-light, #252528);
  border: 1px solid var(--border, #2A2A30);
  border-top: 2px solid var(--crimson, #DC2626);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 9001;
  padding: 4px 0;
}
.sb-nav-dropdown:hover .sb-nav-dropdown-menu {
  display: block;
}
.sb-nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--ink-mid, #9898A0);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.sb-nav-dropdown-item:hover {
  color: #fff;
  background: rgba(220,38,38,.15);
}
.sb-nav-dropdown-item.active {
  color: var(--crimson, #DC2626);
}
.sb-nav-dropdown-divider {
  height: 1px;
  background: var(--border, #2A2A30);
  margin: 4px 0;
}

/* Right-aligned section */
.sb-navbar-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sb-navbar-save-btn {
  background: var(--crimson, #DC2626);
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.sb-navbar-save-btn:hover {
  background: #ef4444;
  transform: scale(1.03);
}
.sb-navbar-save-btn:active {
  transform: scale(.97);
}
.sb-navbar-save-btn.saved {
  background: #16a34a;
  pointer-events: none;
}

/* Push page content below navbar */
body.has-navbar {
  padding-top: 48px;
}

/* Navbar badge counts */
.sb-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--crimson, #DC2626);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  line-height: 1;
}

/* ---- Notification Bell ---- */
.sb-notif-wrap {
  position: relative;
}
.sb-notif-bell {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  padding: 4px 8px;
  line-height: 1;
  filter: grayscale(1) brightness(1.5);
  transition: filter .2s;
}
.sb-notif-bell:hover {
  filter: none;
}
.sb-notif-badge {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--crimson, #DC2626);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.sb-notif-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: var(--bark-light, #252528);
  border: 1px solid var(--border, #2A2A30);
  border-top: 2px solid var(--crimson, #DC2626);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  z-index: 9002;
}
.sb-notif-loading,
.sb-notif-empty {
  padding: 16px;
  text-align: center;
  color: var(--ink-mid, #9898A0);
  font-size: 13px;
}
.sb-notif-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #2A2A30);
  font-size: 13px;
  color: var(--ink, #E8E8ED);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-notif-item.read {
  opacity: .5;
}
.sb-notif-item:last-child {
  border-bottom: none;
}
.sb-notif-msg {
  flex: 1;
}
.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
  white-space: nowrap;
}

/* ---- Transfer Modal ---- */
.sb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.sb-modal {
  background: var(--bark-light, #252528);
  border: 1px solid var(--border, #2A2A30);
  border-radius: 10px;
  padding: 28px 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  color: var(--ink, #E8E8ED);
}
.sb-modal h2 {
  margin: 0 0 12px;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #fff;
}
.sb-modal p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
}
.sb-modal-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-modal-actions .btn {
  width: 100%;
}
