[data-page="workspace"] {
  line-height: 1;
}

/* Workspace Layout */
[data-component="workspace-container"] {
  display: flex;
  height: calc(100vh - 73px);
}

[data-component="workspace-nav"] {
  width: 240px;
  flex-shrink: 0;
  padding: var(--space-6) var(--space-4);
  display: flex;
  justify-content: flex-end;

  [data-component="nav-items"] {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);

    [data-nav-button] {
      padding: var(--space-3) var(--space-4);
      border-radius: var(--border-radius-sm);
      color: var(--color-text-muted);
      text-decoration: none;
      font-size: var(--font-size-sm);
      font-weight: 500;
      transition: all 0.15s ease;

      &:hover {
        color: var(--color-text);
      }

      &.active {
        color: var(--color-text);
        font-weight: 700;
        position: relative;

        &::before {
          content: '';
          position: absolute;
          left: calc(-1 * var(--space-0-5));
          top: 0;
          bottom: 0;
          width: 2px;
          background-color: var(--color-text);
          border-radius: 0 2px 2px 0;
        }
      }
    }
  }
}

[data-component="workspace-content"] {
  flex: 1;
  padding: var(--space-6) var(--space-8);
  overflow-y: auto;

  @media (max-width: 48rem) {
    padding: var(--space-6) var(--space-4);
  }
}

@media (max-width: 48rem) {
  [data-component="workspace-container"] {
    flex-direction: column;
  }

  [data-component="workspace-nav"] {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4);
  }
}