.top-mail {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #f2f6fc;
  color: #4d6687;
}

.top-mail span {
  font-size: 18px;
  line-height: 1;
}

.top-mail:hover,
.top-mail.has-unread {
  background: #eaf2ff;
  color: #2367d7;
}

.top-mail b {
  position: absolute;
  right: -4px;
  top: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #ef6657;
  color: #fff;
  font: 8px "DM Mono", monospace;
  box-shadow: 0 3px 8px #d54c3c30;
}

/* Clear interactive feedback for the primary navigation. */
.sidebar .nav-link {
  position: relative;
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sidebar .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: #62a0ff;
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .18s ease, transform .18s ease;
}

.sidebar .nav-link:hover:not(.active) {
  color: #fff;
  background: #ffffff0d;
  transform: translateX(3px);
}

.sidebar .nav-link:hover:not(.active)::before {
  opacity: 1;
  transform: scaleY(1);
}

.sidebar .nav-link:hover i {
  color: #76adff;
}

.sidebar .nav-link.active:hover {
  color: #fff;
  background: linear-gradient(90deg, #2467dc, #2b59aa);
  box-shadow: 0 10px 24px #020d1f45;
}

.sidebar .nav-link:focus-visible {
  outline: 2px solid #77aaff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .sidebar .nav-link,
  .sidebar .nav-link::before {
    transition: none;
  }
}
