/* Sidebar (global left column).
   Goal: keep all left-column styling in ONE file, so it's easy to evolve later.
*/

/* Make left column ~20% narrower vs the original 210px baseline. */
:root{
  --sidebar-width: 168px; /* 210px * 0.8 */
}

.sidebar{
  background: var(--page-bg);
  padding-top: 2px;
}

/* Sticky nav under the top header */
.sidenav{
  position: sticky;
  top: var(--header-height);
  padding: 0px 0;
}

.sidenav__section{
  margin: 14px 0 6px 0;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #0066cc;
  text-transform: uppercase;
  background: #e3f2fd;
  font-weight: 600;
  border-left: 3px solid #0066cc;
}

.sidenav__link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin: 2px 0;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  border-radius: 6px;
  position: relative;
}

.sidenav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #fca5a5;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: auto;
}

.sidenav__icon{
  width: 18px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.9;
}

.sidenav__link:hover{
  background: rgba(0,0,0,0.04);
}

.sidenav__link--active{
  background: var(--blue-weak);
  font-weight: 600;
  position: relative;
}

.sidenav__link--active::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--orange);
  border-radius: 3px;
}

.sidenav__link--highlight{
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 5px;
  font-weight: 700;
}

.sidenav__badge--hot{
  background: #ff6b6b;
}
