@layer components {
  .body-layout {
    display: flex;
    flex: 1;
  }

  .sidebar {
    width: 232px;
    background: #fff;
    border-right: 1px solid var(--ink-100);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    height: calc(100vh - 52px);
    position: sticky;
    top: 52px;
  }

  .nav-section {
    padding: 12px var(--s4) 4px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-400);
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px var(--s4);
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: all 150ms ease;
    color: var(--ink-600);
    font-size: 13px;
    text-decoration: none;
  }

  .nav-item:hover {
    background: var(--ink-50);
    color: var(--ink-800);
  }

  .nav-item.active {
    background: var(--forest-50);
    border-left-color: var(--forest-700);
    color: var(--forest-700);
    font-weight: 500;
  }

  .nav-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
  }

  .nav-item.active svg {
    opacity: 1;
  }

  .nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--forest-700);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
  }

  .sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--ink-100);
    padding: 10px var(--s4);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .signout-btn {
    font-size: 12px;
    color: var(--ink-400);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 150ms ease;
  }

  .signout-btn:hover {
    color: var(--danger-500);
  }

  .signout-btn svg {
    width: 14px;
    height: 14px;
  }

  .main {
    flex: 1;
    overflow-y: auto;
    padding: 28px 36px 60px;
  }
}
